﻿/* -------------------- Scrollable Panel (Dark Glass) -------------------- */
.grid-panel {
    width: 100%;
    height: 700px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px;
    background-color: rgba(30, 30, 30, 0.85); /* translucent dark glass */
    backdrop-filter: blur(8px); /* frosted effect */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* -------------------- Grid Styling (Dark Glass) -------------------- */
.grid-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Overpass', sans-serif;
    background-color: transparent;
}

    .grid-table th {
        background-color: rgba(50, 50, 50, 0.9);
        color: #fff;
        padding: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
        backdrop-filter: blur(4px);
    }

    .grid-table td {
        padding: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: #ddd;
        background-color: rgba(20, 20, 20, 0.6);
        transition: background 0.3s;
    }

    .grid-table tr:nth-child(even) td {
        background-color: rgba(25, 25, 25, 0.6);
    }

    .grid-table tr:hover td {
        background-color: rgba(40, 40, 40, 0.8);
    }

/* -------------------- Bootstrap-like Pager (Dark Glass) -------------------- */
.bootstrap-pager {
    width: 100%;
    text-align: center;
    margin: 10px 0;
    background-color: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(6px);
    padding: 8px;
    border-radius: 10px;
}

    .bootstrap-pager table {
        display: inline-block;
        margin: 0 auto;
    }

    .bootstrap-pager td {
        padding: 0.25rem;
    }

    .bootstrap-pager a,
    .bootstrap-pager span {
        display: inline-block;
        margin: 0 3px;
        padding: 6px 12px;
        font-size: 14px;
        border-radius: 0.5rem;
        text-decoration: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.2s ease;
        backdrop-filter: blur(4px);
    }

    .bootstrap-pager a {
        color: #0d6efd;
        background-color: rgba(30, 30, 30, 0.6);
    }

        .bootstrap-pager a:hover {
            background-color: #0d6efd;
            color: #fff;
        }

    .bootstrap-pager span {
        background-color: #0d6efd;
        color: #fff;
        font-weight: 500;
        border: 1px solid #0d6efd;
    }

/* -------------------- Body, Logos, Footer -------------------- */
body {
    font-family: 'Overpass', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #121212;
    color: #e0e0e0;
}

header.container-fluid {
    background: radial-gradient(circle, #383838, #9c9c9c);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    padding: 20px 40px;
    border-radius: 8px;
}

.header-logo {
    max-width: 600px;
    height: auto;
}

.cert-logo {
    height: 90px;
    object-fit: contain;
}

footer {
    text-align: center;
    padding: 40px 0 20px 0;
    margin-top: auto;
    background: radial-gradient(circle, #383838, #9c9c9c);
    color: #aaa;
    font-weight: bold;
}

/* -------------------- MasterPage Navbar Links -------------------- */
.navbar {
    background-color: #1f1f1f !important;
}

    .navbar .nav-link.nav-link-custom {
        font-weight: bold;
        color: #e0e0e0 !important;
        background-color: #333;
        padding: 8px 16px;
        border-radius: 5px;
        margin-right: 10px;
        transition: all 0.3s;
        text-decoration: none;
    }

        .navbar .nav-link.nav-link-custom:hover {
            background-color: #555;
            color: #fff !important;
            text-decoration: underline;
        }

        .navbar .nav-link.nav-link-custom:active {
            background-color: #666;
            box-shadow: 0 0 5px #000;
        }

/* Spacing for left vs right aligned links */
.navbar-nav.me-auto .nav-item .nav-link-custom {
    margin-right: 10px;
}

.navbar-nav.ms-auto .nav-item .nav-link-custom {
    margin-left: 10px;
}

/* -------------------- Admin Cards -------------------- */
.admin-dashboard {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.admin-panel {
    flex: 1 1 200px;
    background: linear-gradient(135deg, #1f1f1f, #2a2a2a);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

    .admin-panel:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 20px rgba(0,0,0,0.5);
        background: linear-gradient(135deg, #2a2a2a, #333);
    }

    .admin-panel i {
        font-size: 4rem;
        color: #66b2ff;
        margin-bottom: 15px;
    }

    .admin-panel span {
        font-size: 1.5rem;
        font-weight: 600;
    }

/* Override Bootstrap text-muted for dark theme */
body.dark-theme .text-muted {
    color: #ddd !important;
}

/* -------------------- Light Modal for Dark Theme -------------------- */
.modal-content {
    background-color: #fff !important; /* white background */
    color: #000 !important; /* black text */
}

    .modal-content .spinner-border {
        color: #0d6efd; /* optional: keep Bootstrap spinner color */
    }

/* Loader Overlay */
#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0; /* start invisible */
    pointer-events: none; /* prevent interaction until visible */
    transition: opacity 0.4s ease; /* smooth fade */
}

    /* Visible class */
    #pageLoader.visible {
        opacity: 1;
        pointer-events: auto;
    }

/* Loader box */
#loaderBox {
    width: 160px;
    height: 160px;
    background: rgba(0,0,0,0.6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Lottie container */
#lottie-container {
    width: 120px !important;
    height: 120px !important;
}

    #lottie-container svg {
        width: 120px !important;
        height: 120px !important;
    }

#recordsWarningModal {
    z-index: 20000 !important; /* higher than loader's z-index */
}
