:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --text-color: #1f2937;
    --background-color: #f3f4f6;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --header-height: 70px;
    --footer-height: 80px;
}

/* Base styles */
body {
    background-color: var(--background-color);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: var(--header-height);    /* Add padding for fixed header */
    padding-bottom: var(--footer-height); /* Add padding for fixed footer */
    position: relative;                   /* Add relative positioning */
}

/* Main content adjustment */
main {
    flex: 1;                             /* Changed to flex: 1 */
    width: 100%;
    position: relative;                   /* Add relative positioning */
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    margin: 0;                           /* Remove margins */
    padding: 2rem 0;                     /* Add vertical padding */
}

/* Header styles */
.header-content {
    max-width: 1200px;  
    margin: 0 auto;  
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row; /* Ensure items stay in one line */
    flex-wrap: nowrap; /* Prevent wrapping */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Search section styles */
.search-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 20px;
    margin-top: -60px;
    text-align: center;
}

.search-title {
    font-size: 2.5rem;
  
    color: #2563eb;
    margin-bottom: 10px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;   
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;   
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate; 
    display: block;
}

.search-section p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 15px; 
}

/* Footer styles */
.site-footer {
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    padding: 5px 0;
    color: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #fff;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-link:hover {
    color: #fff;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .site-footer {
        padding: 10px 0;
    }

    .footer-content {
        padding: 0 15px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-brand {
        font-size: 0.875rem;
    }

    .footer-links {
        gap: 15px;
    }

    .footer-link {
        font-size: 0.75rem;
    }
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section {
    padding: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    /* margin-bottom: 15px; */
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    color: #fff;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #fff;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.developer-credit {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.developer-credit a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.developer-credit .fa-heart {
    color: #ff4d4d;
    margin: 0 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-footer {
        padding-top: 12px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section {
        padding: 10px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a,
    .contact-info li {
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .search-title {
        font-size: 26px;
    }
    
    .search-section p {
        font-size: 10px;
    }

    .footer-content {
        padding: 0.5rem;
    }

    .footer-info {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .footer-brand {
        font-size: 1rem;
        display: none;
    }

  
        .footer-text,
    .footer-brand span,
    .footer-links span:not(.footer-divider) {
        display: none;
    }

    .footer-links {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-links a {
        font-size: 0.875rem;
    }

    .footer-divider {
        margin: 0 0.25rem;
        color: #e5e7eb;
    }
}

.search-box {
    flex: 1;
    padding: 8px 12px;  
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 1px solid #E1E1E1;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;    
    border: 1px solid #e5e7eb; 
}

/* Report Container Styles */
.report-container {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.welcome-message {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.report-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 1.5rem;
    text-align: center;
}

.student-info {
    text-align: center;
}

.student-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.student-name-gradient {
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.progress-bar-container {
    width: 100%;
    max-width: 300px;
    height: 12px;
    background-color: #e5e7eb;
    border-radius: 6px;
    margin: 1rem auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    border-radius: 6px;
    transition: width 0.5s ease-in-out;
}

.attendance-summary {
    font-size: 1.25rem;
    color: #4b5563;
    margin: 1rem 0;
}

.student-details {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .report-container {
        padding: 10px;
    }

    .welcome-message {
        padding: 1rem;
    }

    .report-title {
        font-size: 1.5rem;
    }

    .student-info h3 {
        font-size: 1.25rem;
    }

    .attendance-summary {
        font-size: 1rem;
    }

    .student-details {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login button styles */
.btn-login {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
}

.btn-login i {
    font-size: 1rem;
}

/* Add to your media queries */
@media (max-width: 768px) {
    .btn-login {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    .logo {
        font-size: 16px;
    }
    .search-box {  
        font-size: 14px;
     }
}

.lottie-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

dotlottie-player.attendance-animation {
    min-width: 200px;
    min-height: 200px;
}

@media (max-width: 768px) {
    dotlottie-player.attendance-animation {
        width: 300px !important;
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    dotlottie-player.attendance-animation {
        width: 280px !important;
        height: 280px !important;
    }
}