/* Estilos principales para Project Manager */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
    color: #333;
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    width: 90%;
    max-width: none;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.53rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 2.5rem;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    font-weight: 400;
    font-size: 0.78rem;
    white-space: nowrap;
    display: inline-block;
    cursor: pointer;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.18);
    transform: translateY(-0.5px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.nav-menu a.active {
    background-color: rgba(255,255,255,0.3);
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Enfoque accesible para navegación */
.nav-menu a:focus,
.nav-menu a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    background-color: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.2);
}

/* Estilo especial para el botón de Cerrar Sesión */
.nav-menu a[href="logout.php"] {
    background-color: var(--danger-color);
    border: 1px solid #c82333;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.nav-menu a[href="logout.php"]:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-0.5px);
    box-shadow: 0 1px 4px rgba(220, 53, 69, 0.2);
}

/* Foco accesible específico para el botón de Cerrar Sesión */
.nav-menu a[href="logout.php"]:focus,
.nav-menu a[href="logout.php"]:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    background-color: #c82333;
    border-color: #bd2130;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.35);
}

/* Main content wrapper for sticky footer */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 90%;
    max-width: none;
    margin: 0 auto;
    padding: 20px;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: var(--transition);
}

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

.card-header {
    background: var(--light-color);
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.card-header h2 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-col {
    flex: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

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

/* Foco accesible para botones primarios */
.btn-primary:focus,
.btn-primary:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    background-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.35);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

/* Botón info */
.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-info:hover {
    background-color: #138496;
    transform: translateY(-1px);
}

/* Foco accesible para botones informativos */
.btn-info:focus,
.btn-info:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    background-color: #138496;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.35);
}

/* Botón de advertencia */
.btn-warning {
    background-color: var(--warning-color);
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    transform: translateY(-1px);
}

/* Foco accesible para botones de éxito */
.btn-success:focus,
.btn-success:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    background-color: #218838;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.35);
}

/* Foco accesible para botones de advertencia */
.btn-warning:focus,
.btn-warning:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.45);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

/* Foco accesible para botones peligrosos */
.btn-danger:focus,
.btn-danger:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    background-color: #c82333;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.35);
}

/* Botón outline peligro */
.btn-outline-danger {
    background-color: transparent;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.btn-outline-danger:hover {
    background-color: rgba(220, 53, 69, 0.12);
    border-color: #bd2130;
    color: #bd2130;
}

.btn-outline-danger:focus,
.btn-outline-danger:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    background-color: rgba(220, 53, 69, 0.18);
    border-color: #bd2130;
    color: #bd2130;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.35);
}

/* Botón outline primario */
.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: rgba(0, 123, 255, 0.12);
    border-color: #0056b3;
    color: #0056b3;
}

.btn-outline-primary:focus,
.btn-outline-primary:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    background-color: rgba(0, 123, 255, 0.18);
    border-color: #0056b3;
    color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.35);
}

/* Botón outline secundario */
.btn-outline-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.btn-outline-secondary:hover {
    background-color: rgba(108, 117, 125, 0.12);
    border-color: #5a6268;
    color: #5a6268;
}

.btn-outline-secondary:focus,
.btn-outline-secondary:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    background-color: rgba(108, 117, 125, 0.18);
    border-color: #5a6268;
    color: #5a6268;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.35);
}

/* Foco accesible para botones secundarios */
.btn-secondary:focus,
.btn-secondary:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    background-color: #5a6268;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.35);
}

/* Placeholder styles: color gris y alineación visual */
/* Inputs y textareas */
input.form-control::placeholder,
textarea.form-control::placeholder {
    color: var(--secondary-color);
    opacity: 0.7; /* más claro para diferenciar del texto ingresado */
}

/* Compatibilidad con navegadores */
input.form-control::-webkit-input-placeholder,
textarea.form-control::-webkit-input-placeholder { color: var(--secondary-color); opacity: 0.7; }
input.form-control:-ms-input-placeholder,
textarea.form-control:-ms-input-placeholder { color: var(--secondary-color); opacity: 1; }
input.form-control::-ms-input-placeholder,
textarea.form-control::-ms-input-placeholder { color: var(--secondary-color); opacity: 1; }
input.form-control::-moz-placeholder,
textarea.form-control::-moz-placeholder { color: var(--secondary-color); opacity: 0.7; }
input.form-control:-moz-placeholder,
textarea.form-control:-moz-placeholder { color: var(--secondary-color); opacity: 0.7; }

/* Selects: aplicar color gris cuando está en estado placeholder (valor vacío) */
select.form-control.placeholder { color: var(--secondary-color); }
select.form-control option[value=""] { color: var(--secondary-color); }

/* Ajustes sutiles de alineación vertical para controles de formulario */
input.form-control,
select.form-control,
textarea.form-control {
    line-height: 1.5; /* mejora alineación vertical del texto */
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

/* Small buttons - 43.75% smaller total (25% + 25% of remaining) */
.btn-sm {
    padding: 0.421875rem 0.84375rem; /* Additional 25% reduction from 0.5625rem 1.125rem */
    font-size: 0.65625rem; /* Additional 25% reduction from 0.875rem */
    font-weight: 500;
}

/* Toggle buttons */
.btn-toggle {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.btn-activate {
    background-color: #28a745;
    color: white;
}

.btn-deactivate {
    background-color: #dc3545;
    color: white;
}

/* Extra small buttons - for fitting multiple buttons in one row */
.btn-xs {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    border-radius: 4px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.badge-primary { background-color: var(--primary-color); color: white; }
.badge-secondary { background-color: var(--secondary-color); color: white; }
.badge-success { background-color: var(--success-color); color: white; }
.badge-danger { background-color: var(--danger-color); color: white; }
.badge-warning { background-color: var(--warning-color); color: #212529; }
.badge-info { background-color: var(--info-color); color: white; }
.badge-light { background-color: var(--light-color); color: #212529; }
.badge-dark { background-color: var(--dark-color); color: white; }

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.table th {
    background-color: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Progress Bar */
.progress {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), #20c997);
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
}

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

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-dismissible {
    position: relative;
    padding-right: 4rem;
}

.close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
}

.close:hover {
    opacity: 1;
}

/* Gantt Chart Styles */
.gantt-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1rem;
    overflow-x: auto;
}

.gantt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.gantt-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.gantt-chart {
    min-height: 400px;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Responsive Design */

/* Mobile First - Base styles for mobile */
@media (max-width: 480px) {
    .container {
        padding: 10px;
        width: 90%;
        max-width: 90%;
    }
    
    .header .container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 10px;
    }
    
    .logo {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .logo img {
        height: 2rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-header h2 {
        font-size: 1.2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.25rem;
        margin-right: 0;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Tables responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }
}

/* Tablets - Portrait */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .nav-menu a {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        white-space: normal;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .btn {
        margin-bottom: 0.5rem;
    }
    
    .table {
        font-size: 0.9rem;
    }
}

/* Tablets - Landscape and Small Desktops */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 20px;
        width: 90%;
        max-width: 90%;
    }
    
    .nav-menu a {
        padding: 0.6rem 1rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-row {
        flex-wrap: wrap;
    }
    
    .form-col {
        min-width: 250px;
    }
}

/* Large screens */
@media (min-width: 1025px) {
    .container {
        width: 90%;
        max-width: 90%;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    .container {
        width: 90%;
        max-width: 90%;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .header {
        position: relative;
    }
    
    .header .container {
        flex-direction: row;
        padding: 0.5rem 1rem;
    }
    
    .nav-menu {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .nav-menu a {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Print styles */
@media print {
    .header,
    .nav-menu,
    .btn {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.w-100 { width: 100%; }

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade {
    opacity: 1;
    transition: opacity 0.15s linear;
}

.fade:not(.show) {
    opacity: 0;
}

.show {
    display: block !important;
}

/* ===== MENÚ HAMBURGUESA ===== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 0;
        height: 100%;
        overflow-y: auto;
    }
    
    .nav-container.active {
        right: 0;
    }
    
    .nav-container .nav-menu {
        position: static;
        width: 100%;
        background: transparent;
        box-shadow: none;
    }
    
    .nav-menu li {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        text-align: left;
        border-radius: 8px;
        font-size: 1rem;
        background-color: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.2);
        margin-bottom: 5px;
        white-space: normal;
    }
    
    .nav-menu a:hover {
        background-color: rgba(255,255,255,0.25);
        transform: translateX(5px);
    }
    
    .nav-menu a.active {
        background-color: rgba(255,255,255,0.3);
        border-color: rgba(255,255,255,0.4);
    }
    
    /* Overlay para cerrar menú */
    .nav-container.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }
}

@media (min-width: 769px) {
    .hamburger-menu {
        display: none !important;
    }
    
    .nav-container {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
    }
    
    .nav-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        padding: 0;
        background: transparent;
        box-shadow: none;
        height: auto;
        overflow: visible;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d5016, #1a3009);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
    width: 100%;
}

.footer .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer .logo {
    font-size: 1.53rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer .logo img {
    height: 2.5rem;
    width: auto;
}

.footer .nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.footer .nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    font-weight: 400;
    font-size: 0.8rem;
    display: inline-block;
    cursor: pointer;
}

.footer .nav-menu a:hover {
    background-color: rgba(255,255,255,0.18);
    transform: translateY(-0.5px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.footer .nav-menu a.active {
    background-color: rgba(255,255,255,0.3);
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .footer .nav-menu a {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}