* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: #0056b3;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-links a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* Banner */
.banner {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.banner p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Filtros */
.filters {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    border-radius: 12px;
    margin-left: 1rem;
    margin-right: 1rem;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
}

/* Botões */
.btn {
    background: #007bff;
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.btn-logout {
    background: #dc3545;
    color: white !important;
}

.btn-logout:hover {
    background: #c82333;
}

/* Cards de Kitnet */
.kitnets-section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.kitnets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.kitnet-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.kitnet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.kitnet-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.kitnet-info {
    padding: 1.5rem;
}

.kitnet-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.kitnet-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 1rem;
}

.kitnet-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.kitnet-detail {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.kitnet-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.kitnet-user-type {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: capitalize;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Formulários */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    justify-content: center;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Estilos para paginação */
.pagination-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.2rem;
    border: 1px solid #dee2e6;
    color: #007bff;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #0056b3;
}

.pagination-current {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.pagination-current:hover {
    background-color: #0056b3;
    border-color: #004085;
    color: white;
}

/* Responsividade da paginação */
@media (max-width: 768px) {
    .pagination {
        font-size: 0.9rem;
    }
    
    .pagination-btn {
        padding: 0.4rem 0.8rem;
        min-width: 35px;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .banner h1 {
        font-size: 2rem;
    }
    
    .filter-form {
        grid-template-columns: 1fr;
    }
    
    .kitnets-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Upload de imagens */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s;
}

.upload-area:hover {
    border-color: #007bff;
}

.upload-area.dragover {
    border-color: #007bff;
    background: rgba(0,123,255,0.05);
}

/* Layout de 2 colunas para formulários maiores */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row .form-group {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Adicione este CSS ao seu arquivo style.css: */

/* ===== SIDEBAR MENU ===== */

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.sidebar-close:hover {
    background: #e9ecef;
}

/* Sidebar Content */
.sidebar-content {
    padding: 1rem 0;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    margin: 0 1rem 1rem 1rem;
    border-radius: 8px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.user-info .user-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.user-info .user-type {
    font-size: 0.9rem;
    color: #666;
    text-transform: capitalize;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: #f8f9fa;
    border-left-color: #007bff;
    color: #007bff;
}

.sidebar-link.highlight {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

.sidebar-link.highlight:hover {
    background: #bbdefb;
}

.sidebar-link.logout {
    color: #dc3545;
}

.sidebar-link.logout:hover {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.sidebar-icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-divider {
    margin: 1rem 1.5rem;
    border: none;
    border-top: 1px solid #dee2e6;
}

/* ===== HEADER PRINCIPAL ===== */

.main-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* Menu Hambúrguer */
.menu-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.menu-toggle:hover {
    background: #f8f9fa;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: #333;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    text-decoration: none;
    margin-left: 1rem;
}

/* Navigation Desktop */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background: #f8f9fa;
}

/* Mobile User */
.mobile-user {
    display: flex;
    align-items: center;
}

.mobile-user-name {
    font-size: 1.5rem;
}

/* Botões */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* ===== RESPONSIVE ===== */

/* Tablets e Desktop */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    
    .mobile-user {
        display: none;
    }
    
    .sidebar {
        width: 320px;
        left: -320px;
    }
}

/* Desktop Grande */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
    
    .logo {
        margin-left: 0;
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .sidebar {
        width: 280px;
        left: -280px;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.3rem;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    
    .user-dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        padding: 0.8rem 0;
    }
}

/* Layout global para páginas com pouco conteúdo */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container principal */
main, .main-content, .form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Páginas de formulário centralizadas */
.form-container {
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
}

/* Footer sempre no bottom */
footer {
    margin-top: auto;
}

/* Para páginas com muito conteúdo, o footer comporta-se normalmente */
.content-page {
    flex: initial;
}

/* ===== FORMULÁRIOS DE AUTENTICAÇÃO ===== */

/* Container principal para páginas de auth */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 1rem;
}

/* Container do formulário */
.auth-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
}

/* Efeito decorativo */
.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

/* Título do formulário */
.auth-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Grupos de formulário */
.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-group:last-of-type {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fafafa;
}

.auth-form input:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* Botão principal */
.auth-btn {
    width: 100%;
    padding: 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.auth-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Links auxiliares */
.auth-links {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.auth-links a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Alertas */
.auth-alert {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Ícones nos campos */
.input-group {
    position: relative;
}

.input-group input {
    padding-left: 2.5rem;
}

.input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

/* Animação de entrada */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-container {
    animation: slideUp 0.5s ease-out;
}