header {
    text-align: center;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    top: 0; 
    width: 100%;
    z-index: 10;
}

main {
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.dashboard-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) fixed;
}

.hero {
    margin-top: var(--navbar-height);
    padding: 40px 20px;
}

.hero-card {
    text-align: center;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.feature-card {
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.feature-card h2 {
    margin-bottom: 30px;
}

.feature-card h3 {
    color: var(--text-color);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.3s; }
.feature-card:nth-child(3) { animation-delay: 0.5s; }

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

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

.dashboard-card {
    text-align: center;
    padding: 25px;
}

.dashboard-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.dashboard-page .container {
    margin-bottom: 0;
    padding-bottom: 80px;
}

.dashboard-page footer {
    position: relative;
    margin-top: auto;
}

.dashboard-grid .dashboard-card {
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}

.dashboard-grid .dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-grid .dashboard-card:nth-child(2) { animation-delay: 0.3s; }
.dashboard-grid .dashboard-card:nth-child(3) { animation-delay: 0.5s; }
.dashboard-grid .dashboard-card:nth-child(4) { animation-delay: 0.7s; }
.dashboard-grid .dashboard-card:nth-child(5) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-container {
    max-width: 500px;
    margin: var(--navbar-height) auto 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.auth-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.alert {
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .hero-card {
        padding: 2rem 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.footer-home {
    background-color: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding: 1.5rem;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
  }

body.dark-mode .footer-home  {
    background-color: rgba(49, 49, 49, 0.95);
}