/* ============================================
   SHIVAM COMPUTER - MAIN STYLESHEET
   Cleaned & Optimized
   ============================================ */

/* ===== FONTS & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Bitter:wght@400;600;700&display=swap');

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #f0f2f5;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bitter', serif;
}

a {
    text-decoration: none;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    min-height: 100vh;
    background: #20396c;
    color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(32, 57, 108, 0.3);
}

.sidebar .brand {
    padding: 25px 15px 20px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, #20396c, #1a2f5a);
}

.sidebar .brand h4 {
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    font-family: 'Bitter', serif;
}

.sidebar .brand h4 i {
    color: #d27e26;
    margin-right: 8px;
}

.sidebar .brand small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: #20396c;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #d27e26;
    border-radius: 10px;
}

.sidebar .nav-link {
    color: #fff;
    padding: 12px 20px;
    margin: 4px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    position: relative;
}

.sidebar .nav-link:hover {
    background: rgba(210, 126, 38, 0.2);
    color: #fff;
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background: #d27e26;
    color: #fff;
    box-shadow: 0 4px 15px rgba(210, 126, 38, 0.4);
}

.sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 4px;
    background: #fff;
    border-radius: 0 4px 4px 0;
}

.sidebar .nav-link i {
    width: 22px;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar .nav-link span {
    font-size: 14px;
}

.sidebar .nav-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 10px 20px;
}
.show a {
    margin-left: 50px !important;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-left: 250px;
    padding: 20px 25px;
    min-height: 100vh;
    transition: all 0.3s ease;
    background: #f0f2f5;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(32, 57, 108, 0.08);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #d27e26;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar h5 {
    font-weight: 600;
    color: #20396c;
    margin: 0;
    font-family: 'Bitter', serif;
    font-size: 18px;
}

.top-bar h5 i {
    color: #d27e26;
}

.top-bar .badge-role {
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #20396c;
    color: #fff;
    white-space: nowrap;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 15px rgba(32, 57, 108, 0.06);
    transition: all 0.3s ease;
    background: #fff;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(32, 57, 108, 0.12);
    transform: translateY(-3px);
}

.card-header {
    background: #fff;
    border-bottom: 2px solid #f0f2f5;
    padding: 15px 20px;
    font-family: 'Bitter', serif;
}

.card-header h6 {
    color: #20396c;
    font-family: 'Bitter', serif;
    margin: 0;
    font-size: 16px;
}

/* ============================================
   STAT CARDS
   ============================================ */
.stat-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.1);
}

.stat-card-inner {
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Bitter', serif;
    margin: 4px 0 0;
    color: #fff;
}

.stat-icon {
    font-size: 38px;
    opacity: 0.25;
}

/* Stat Colors */
.stat-primary .stat-card-inner {
    background: linear-gradient(135deg, #20396c, #2a4a8a);
}
.stat-secondary .stat-card-inner {
    background: linear-gradient(135deg, #820018, #a80020);
}
.stat-third .stat-card-inner {
    background: linear-gradient(135deg, #d27e26, #e8943a);
}
.stat-success .stat-card-inner {
    background: linear-gradient(135deg, #1a7a4a, #28a76a);
}

/* ============================================
   TABLES
   ============================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    min-width: 600px;
    width: 100%;
}

.table thead {
    background: #f8f9fc;
}

.table thead th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #20396c;
    border-bottom: 2px solid #e9ecef;
    font-family: 'Outfit', sans-serif;
    padding: 12px 15px;
    white-space: nowrap;
}

.table tbody tr:hover {
    background: #f8f9fc;
}

.table td {
    vertical-align: middle;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    padding: 10px 15px;
}

/* ============================================
   BADGES
   ============================================ */
.badge-status {
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.badge-active {
    background: #e8f5e9;
    color: #1a7a4a;
}

.badge-inactive {
    background: #fce4ec;
    color: #820018;
}

.badge-pending {
    background: #fff3e0;
    color: #d27e26;
}

/* ============================================
   PHOTO THUMB
   ============================================ */
.photo-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid #20396c;
    flex-shrink: 0;
}

.photo-thumb-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 18px;
    flex-shrink: 0;
}

.recent-photo {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid #20396c;
    background: #fff;
}

.recent-photo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
}

.recent-photo-placeholder i {
    font-size: 16px;
    color: #adb5bd;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-action {
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 8px;
    margin: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.btn-primary {
    background: #20396c;
    border-color: #20396c;
    color: #fff;
}

.btn-primary:hover {
    background: #1a2f5a;
    border-color: #1a2f5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(32, 57, 108, 0.3);
}

.btn-secondary {
    background: #820018;
    border-color: #820018;
    color: #fff;
}

.btn-secondary:hover {
    background: #6a0014;
    border-color: #6a0014;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(130, 0, 24, 0.3);
}

.btn-warning {
    background: #d27e26;
    border-color: #d27e26;
    color: #fff;
}

.btn-warning:hover {
    background: #b86d20;
    border-color: #b86d20;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(210, 126, 38, 0.3);
}

.btn-success {
    background: #1a7a4a;
    border-color: #1a7a4a;
    color: #fff;
}

.btn-success:hover {
    background: #14683d;
    border-color: #14683d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 122, 74, 0.3);
}

.btn-danger {
    background: #820018;
    border-color: #820018;
    color: #fff;
}

.btn-danger:hover {
    background: #6a0014;
    border-color: #6a0014;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(130, 0, 24, 0.3);
}

.btn-info {
    background: #d27e26;
    border-color: #d27e26;
    color: #fff;
}

.btn-info:hover {
    background: #b86d20;
    border-color: #b86d20;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(210, 126, 38, 0.3);
}

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    width: 100%;
    font-size: 16px;
}

.form-control:focus,
.form-select:focus {
    border-color: #20396c;
    box-shadow: 0 0 0 0.2rem rgba(32, 57, 108, 0.2);
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    color: #20396c;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 6px;
    display: block;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 14px;
    border: none;
    margin-bottom: 18px;
}

.alert-danger {
    background: #fce4ec;
    color: #820018;
}

.alert-success {
    background: #e8f5e9;
    color: #1a7a4a;
}

.alert-warning {
    background: #fff3e0;
    color: #d27e26;
}

.alert-info {
    background: #e3f2fd;
    color: #20396c;
}

/* ============================================
   CENTER CARDS (Dashboard)
   ============================================ */
.center-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.center-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.center-card-body {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.center-name {
    font-weight: 600;
    color: #20396c;
    font-size: 15px;
    font-family: 'Bitter', serif;
}

.center-count {
    font-size: 24px;
    font-weight: 700;
    color: #20396c;
    font-family: 'Bitter', serif;
}

.center-count span {
    font-size: 13px;
    font-weight: 400;
    color: #7f8c8d;
}

.center-inactive {
    font-size: 12px;
    color: #820018;
}

.center-card-icon {
    font-size: 32px;
    color: #d27e26;
    opacity: 0.3;
}

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-actions-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    overflow: hidden;
}

.quick-actions-header {
    padding: 14px 22px;
    border-bottom: 2px solid #f0f2f5;
}

.quick-actions-body {
    padding: 16px 22px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* ============================================
   RESPONSIVE - TABLETS (max-width: 992px)
   ============================================ */
@media (max-width: 992px) {
    .main-content {
        padding: 15px;
    }
    .top-bar {
        padding: 12px 18px;
    }
    .top-bar h5 {
        font-size: 16px;
    }
}

/* ============================================
   RESPONSIVE - MOBILES (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {  

    .main-content {
    }

    .top-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 12px 15px;
        border-left-width: 3px;
    }
    .top-bar h5 {
        font-size: 15px;
    }
    .top-bar .badge-role {
        align-self: center;
    }

    .stat-number {
        font-size: 26px;
    }
    .stat-icon {
        font-size: 32px;
    }

    .verify-wrapper {
        padding: 12px;
    }
    .verify-top-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .verify-top-bar .logo {
        font-size: 18px;
    }
    .verify-search {
        padding: 18px 14px;
    }
    .verify-search .input-group {
        flex-direction: column;
        border-radius: 10px;
    }
    .verify-search .form-control {
        border-radius: 10px 10px 0 0;        
        padding: 14px 16px;
    }
    .verify-search .btn-search {
        border-radius: 0;
        width: 100%;
        padding: 14px;
        justify-content: center;
    }
    .search-row .btn-reset {
        border-radius: 0 0 10px 10px;
        width: 100%;
        padding: 14px;
        justify-content: center;
    }

    .verify-student-card {
        padding: 20px 16px 16px;
    }
    .verify-photo {
        width: 80px;
        height: 80px;
    }
    .verify-photo-placeholder {
        width: 80px;
        height: 80px;
    }

    .detail-row {
        grid-template-columns: 1fr 1fr;
        gap: 4px 12px;
        padding: 10px 12px;
    }

    .center-card-body {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .quick-actions-body {
        flex-direction: column;
    }
    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .table td {
        font-size: 13px;
        padding: 8px 10px;
    }
    .table thead th {
        font-size: 11px;
        padding: 8px 10px;
    }
    .photo-thumb {
        width: 35px;
        height: 35px;
    }
    .photo-thumb-placeholder {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .recent-photo {
        width: 32px;
        height: 32px;
    }
    .recent-photo-placeholder {
        width: 32px;
        height: 32px;
    }

    .btn {
        padding: 6px 14px;
        font-size: 13px;
    }
    .btn-action {
        padding: 3px 8px;
        font-size: 12px;
        min-width: 28px;
        min-height: 28px;
    }
    .form-control,
    .form-select {
        font-size: 16px;
        padding: 10px 12px;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILES (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .verify-wrapper {
        padding: 8px;
    }
    .verify-top-bar .logo {
        font-size: 16px;
    }
    .verify-brand h3 {
        font-size: 18px;
    }
    .verify-photo {
        width: 65px;
        height: 65px;
        border-width: 3px;
    }
    .verify-photo-placeholder {
        width: 65px;
        height: 65px;
        border-width: 3px;
    }

    .stat-number {
        font-size: 22px;
    }
    .stat-icon {
        font-size: 28px;
    }
    .stat-card-inner {
        padding: 15px 18px;
    }

    .top-bar h5 {
        font-size: 14px;
    }
    .badge-status {
        font-size: 10px;
        padding: 3px 12px;
    }

    .table td {
        font-size: 12px;
        padding: 6px 8px;
    }
    .table thead th {
        font-size: 10px;
        padding: 6px 8px;
    }
    .photo-thumb {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }
    .photo-thumb-placeholder {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .btn {
        font-size: 12px;
        padding: 5px 12px;
    }
    .btn-action {
        font-size: 11px;
        padding: 2px 6px;
        min-width: 24px;
        min-height: 24px;
    }

    .verify-footer {
        font-size: 11px;
    }
}

/* ============================================
   TOUCH FRIENDLY - Larger touch targets
   ============================================ */
@media (max-width: 768px) {
    p.brand-subtitle {
    font-size: 13px;
}
    .btn-header-add {
    display: none !important;
}
    .sidebar .nav-link i {
    width: 12px;
    font-size: 13px;
}
    .sidebar .nav-link {
        padding: 5px 14px !important;
        margin: 4px 5px !important;
    }
    .sidebar .brand {
        padding-bottom: 0;
        padding-top: 12px;
        padding-right: 14px;
        text-align: left;
    }  
    .mobile-toggle-btn {
        left: auto !important;
        right: 12px;
        top: 10px !important;
    }
    .sidebar .brand h4
    {
        font-size: 16px;
    }
    .btn,
    .btn-action,
    .nav-link,
    .home-link,
    .btn-search {
        min-height: 34px;
        min-width: 44px;
    }
    .btn-action {
        min-height: 36px;
        min-width: 36px;
    }
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .sidebar,
    .top-bar,
    .btn,
    .no-print {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
        padding: 10px !important;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}


@media (max-width: 768px) {
    .sidebar {
        width: 199px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1px 4px;
    }
    .list-header-bar {
    padding-left: 13px !important;
    }
}

/* ============================================
   MOBILE SIDEBAR TOGGLE & OVERLAY
   ============================================ */
.mobile-toggle-btn {
    display: none;
    background: #fff;
    color: #20396c;
    border: none;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    position: absolute;
    top: 25px;
    left: 26px;
    z-index: 1100;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .mobile-toggle-btn {
        display: inline-block;
    }
}

/* ============================================
   LIST HEADER BAR (Blue banner - Manage Students style)
   ============================================ */
.list-header-bar {
    background: linear-gradient(135deg, #20396c, #2a4a8a);
    padding: 18px 25px;
    border-radius: 14px 14px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.list-header-bar h5 {
    color: #fff;
    font-family: 'Bitter', serif;
    font-weight: 700;
    font-size: 18px;
    margin: 0;
}

.list-header-bar h5 i {
    margin-right: 8px;
}

.btn-header-add {
    background: #fff;
    color: #20396c;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.btn-header-add:hover {
    background: #f0f2f5;
    color: #20396c;
    transform: translateY(-2px);
}

/* Square Action Buttons */
.btn-square-action {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 14px;
    margin: 0 3px;
    transition: all 0.2s;
    color: #fff;
}

.btn-square-action:hover {
    transform: translateY(-2px);
    color: #fff;
}

.sq-edit { background: #d27e26; }
.sq-delete { background: #820018; }
.sq-locked { background: #adb5bd; cursor: not-allowed; opacity: 0.6; }

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #820018, #a80020);
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header-left {
    display: flex;
    align-items: center;
}

.page-title-group {
    display: flex;
    flex-direction: column;
}

.page-main-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title-icon {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
}

.page-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 5px 0 0 0;
}

.page-breadcrumb .breadcrumb-item {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.page-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.page-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
}

.page-breadcrumb .breadcrumb-item.active {
    color: #fff;
}

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

.page-header-right {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #fff;
}

.header-date {
    background: rgba(255,255,255,0.15);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.header-date i {
    margin-right: 8px;
}

.header-welcome {
    font-size: 15px;
    font-weight: 500;
}

.header-welcome i {
    margin-right: 8px;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header-right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .page-main-title {
        font-size: 18px;
    }
}

/* ============================================
   POPUP / MODAL STYLES
   ============================================ */

/* Modal Container */
.modal-backdrop {
    display: none;
}
.modal {
    background: rgba(0, 0, 0, 0.5);
}
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Header - Primary (Your Color) */
.modal-header-primary {
    position: relative;
    background: linear-gradient(135deg, #20396c, #2a4a8a);
    color: #fff;
    border-radius: 15px 15px 0 0;
    padding: 20px 25px;
}
.modal-header-primary h5 {
    color: #fff;
    font-family: 'Bitter', serif;
    font-weight: 700;
    margin: 0;
}
.modal-header-primary .btn-close-white {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    filter: brightness(0) invert(1);
    opacity: 0.8;
    z-index: 10;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
}
.modal-header-primary .btn-close-white:hover {
    opacity: 1;
}

/* Modal Body */
.modal-body-custom {
    padding: 25px;
}

/* Success Title with Icon */
.success-title {
    font-family: 'Bitter', serif;
    font-weight: 700;
    color: #1a7a4a;
    font-size: 24px;
}
.success-title i {
    color: #1a7a4a;
}

/* Student Info Box */
.student-info-box {
    background: #f8f9fc;
    border-radius: 10px;
    padding: 12px 15px;
}
.student-info-box .label {
    display: block;
    font-size: 11px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.student-info-box .value {
    font-weight: 600;
    font-size: 16px;
    color: #20396c;
}
.student-info-box .value-primary {
    color: #20396c;
    font-size: 18px;
    font-weight: 700;
}

/* ============================================ */
/* ✅ MODAL FOOTER - FIXED */
/* ============================================ */
.modal-footer-custom {
    border-top: none;
    padding: 15px 25px 20px;
    gap: 12px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background: #f0f2f5;
    border-radius: 0 0 15px 15px;
}
/* View Profile Button - Blue Background, White Text */
.btn-view-profile {
    background: linear-gradient(135deg, #20396c, #2a4a8a) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
}
.btn-view-profile:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 20px rgba(32, 57, 108, 0.35) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Add Another Button - White Background, Blue Text */
.btn-add-another {
    background: #ffffff !important;
    color: #20396c !important;
    border: 2px solid #20396c !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
}
.btn-add-another:hover {
    background: #20396c !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 20px rgba(32, 57, 108, 0.25) !important;
    text-decoration: none !important;
}

/* Fix for any conflicting .show a rules */
.modal-footer-custom a {
    text-decoration: none !important;
    margin-left: 0 !important;
}
.modal-footer-custom a:hover {
    text-decoration: none !important;
}

/* Responsive Popup */
@media (max-width: 576px) {
    .modal-content {
        margin: 10px;
    }
    .modal-header-primary {
        padding: 15px 18px;
    }
    .modal-header-primary h5 {
        font-size: 16px;
    }
    .modal-body-custom {
        padding: 18px;
    }
    .student-info-box .value {
        font-size: 14px;
    }
    .student-info-box .value-primary {
        font-size: 16px;
    }
    .btn-view-profile,
    .btn-add-another {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
    }
    .modal-footer-custom {
        flex-direction: column;
        padding: 12px 18px 16px;
    }
    .modal-header-primary .btn-close-white {
        right: 12px;
    }
}
.modal-header-primary.modal-header-delete
{
    background: #a80020;
}


/* ============================================
   VERIFICATION PAGE - CLEAN CSS
   ============================================ */

/* ===== MAIN WRAPPER ===== */
.verify-wrapper {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
}

/* ===== TOP BAR ===== */
.verify-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: linear-gradient(135deg, #20396c, #2a4a8a);
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(32,57,108,0.25);
}

.verify-top-bar .logo {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Bitter', serif;
}

.verify-top-bar .admin-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 13px;
    padding: 5px 16px;
    background: rgba(255,255,255,0.10);
    border-radius: 20px;
    transition: all 0.3s;
}

.verify-top-bar .admin-link:hover {
    background: rgba(255,255,255,0.20);
    color: #fff;
}

/* ===== SEARCH SECTION ===== */
.verify-search {
    background: #fff;
    border-radius: 12px;
    padding: 22px 24px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 22px;
}

.search-row .input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}



.search-row .input-group .form-control:focus {
    border-color: #20396c;
    box-shadow: 0 0 0 4px rgba(32,57,108,0.08);
    background: #fff;
}

.search-row .input-group .form-control-date {
    flex: 1 1 160px;
    min-width: 130px;
    transition: all 0.3s;
    background: #fafbfd;
}

.search-row .input-group .form-control-date:focus {
    border-color: #20396c;
    box-shadow: 0 0 0 4px rgba(32,57,108,0.08);
    background: #fff;
}

.btn-search {
    background: linear-gradient(135deg, #20396c, #2a4a8a);
    color: #fff;
    border: none;
    border-radius: 10px !important;
    padding: 11px 30px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32,57,108,0.30);
    color: #fff;
}

.btn-reset {
    background: #820018;
    color: #fff;
    border: 2px solid #e2e6ee;
    border-radius: 10px !important;
    padding: 11px 18px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

.btn-reset:hover {
    border-color: #d0d7e2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 57, 108, 0.30);
}

.verify-hint {
    margin-top: 12px;
    color: #8a94a6;
    font-size: 13px;
}

/* ===== ERROR ALERTS ===== */
.verify-alert {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.alert-wrong-form {
    background: #fef3f2;
    border-left: 4px solid #820018;
    color: #820018;
}

.alert-wrong-date {
    background: #fff8e6;
    border-left: 4px solid #d27e26;
    color: #8a5a1a;
}

.alert-empty {
    background: #f0f4ff;
    border-left: 4px solid #20396c;
    color: #20396c;
}

/* ===== VERIFIED CARD ===== */
.verify-student-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(32,57,108,0.08);
    animation: fadeUp 0.5s ease;
}

/* ===== HEADER ===== */
.card-header-verify {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 24px;
    border-bottom: 2px solid #e8edf4;
}

.verify-badge {
    color: #1b7a34;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Bitter', serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verify-badge span {
    color: #4caf50;
}

.verify-center-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.verify-center-badge {
    display: inline-block;
    background: #f0f4ff;
    color: #20396c;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #d2e3fc;
}

.verify-center-badge i {
    margin-right: 6px;
    color: #d27e26;
}

.verify-center-code {
    display: inline-block;
    background: #f1f3f4;
    color: #5f6368;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
}

/* ===== BODY - LEFT-RIGHT LAYOUT ===== */
.card-body-verify {
    padding: 24px 28px;
}

.verify-row {
    display: flex;
    gap: 30px;
}

/* ===== LEFT COLUMN (30%) ===== */
.verify-left-col {
    flex: 0 0 34%;
    max-width: 34%;
    text-align: center;
    border-right: 1px solid #e8edf4;
    padding-right: 20px;
}

.verify-photo {
    width: 140px;
    height: 170px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid #e8edf4;
    box-shadow: 0 4px 15px rgba(32,57,108,0.10);
}

.verify-photo-placeholder {
    width: 140px;
    height: 170px;
    border-radius: 8px;
    background: #f1f3f4;
    border: 3px solid #e8edf4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #b0b8c5;
    margin: 0 auto;
}

.verify-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a2332;
    font-family: 'Bitter', serif;
    margin-top: 12px;
}

.verify-status-badge {
    display: inline-block;
    padding: 2px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #e8f5e9;
    color: #1b7a34;
    margin-top: 4px;
}

.verify-id-badge {
    display: inline-block;
    padding: 2px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #e3f2fd;
    color: #0d47a1;
    margin-top: 6px;
}

/* ===== LEFT COLUMN - INFO BOXES ===== */
.verify-left-info {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e8edf4;
    text-align: left;
}

.verify-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
}

.verify-info-box:last-child {
    margin-bottom: 0;
}

.verify-info-box .circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.circle-blue {
    background: #20396c;
}

.circle-orange {
    background: #d27e26;
}

.verify-info-box .circle i {
    color: #fff;
    font-size: 14px;
}

.verify-info-box .info-text {
    flex: 1;
}

.verify-info-box .info-text .label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.verify-info-box .info-text .value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a2332;
}

/* ===== RIGHT COLUMN (70%) ===== */
.verify-right-col {
    flex: 1;
    min-width: 0;
}

.verify-detail-grid {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    gap: 4px 20px;
}

.verify-detail-item {
    padding: 8px 0;
    border-bottom: 1px solid #b3b5b8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.verify-detail-item .label {
    font-weight: 600;
}

.verify-detail-item .value {
    font-weight: 600;
}

.verify-detail-item .value .code-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: #f1f3f4;
    color: #5f6368;
    font-family: monospace;
}

.verify-detail-item .value .grade-badge {
    display: inline-block;
    padding: 2px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.grade-aplus {
    background: #e8f5e9;
    color: #1b7a34;
}

.grade-other {
    background: #e3f2fd;
    color: #0d47a1;
}

.grade-fail {
    background: #fef3f2;
    color: #820018;
}

.marks-highlight {
    color: #20396c;
    font-weight: 700;
}

/* ===== VERIFIED TIME ===== */
.verify-time {
    text-align: center;
    padding: 12px;
    font-size: 13px;
    border-top: 1px solid #f0f2f5;
    background: #fafbfd;
    margin-top: 15px;
}

/* ===== NOT FOUND ===== */
.verify-notfound {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(32,57,108,0.06);
    animation: fadeUp 0.5s ease;
}

.verify-notfound h4 {
    font-size: 20px;
    color: #1a2332;
    font-weight: 600;
    margin-bottom: 8px;
}

.verify-notfound p {
    color: #7f8c8d;
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .verify-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .verify-left-col {
        flex: 1 1 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #e8edf4;
        padding-right: 0;
        padding-bottom: 20px;
    }
    
    .verify-left-info {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .verify-left-info .verify-info-box {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 600px) {
    .verify-wrapper {
        margin: 15px auto;
        padding: 0 10px;
    }
    
    .verify-search {
        padding: 16px;
    }
    
    .card-body-verify {
        padding: 16px;
    }
    
    .verify-detail-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .verify-detail-item {
        padding: 7px 0;
    }
    
    .verify-left-info {
        flex-direction: column;
    }
    
    .verify-left-info .verify-info-box {
        min-width: 100%;
    }
    
    .verify-photo {
        width: 100px;
        height: 120px;
    }
    
    .verify-photo-placeholder {
        width: 100px;
        height: 120px;
        font-size: 36px;
    }
    
    .search-row .input-group .form-control,
    .search-row .input-group .form-control-date {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .search-row .input-group .btn-search,
    .search-row .input-group .btn-reset {
        flex: 1 1 48%;
    }
    
    .card-header-verify {
        flex-direction: column;
        text-align: center;
    }
    
    .verify-center-info {
        justify-content: center;
    }
}

/* ============================================
   DATE INPUT WITH CALENDAR ICON
   ============================================ */

.date-input-group {
    display: flex;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    background: #fff;
    transition: all 0.3s ease;
}

.date-input-group:focus-within {
    border-color: #20396c;
    box-shadow: 0 0 0 4px rgba(32, 57, 108, 0.12);
}

.date-input-group .date-display {
    border: none !important;
    border-radius: 10px 0 0 10px !important;
    padding: 10px 15px !important;
    font-size: 16px !important;
    background: transparent !important;
    flex: 1;
    outline: none !important;
    box-shadow: none !important;
    min-width: 0;
}

.date-input-group .date-display:focus {
    outline: none !important;
    box-shadow: none !important;
}

.date-input-group .date-display::placeholder {
    color: #adb5bd;
    font-size: 14px;
}

/* Calendar Icon Button */
.date-icon-btn {
    background: #fff !important;
    border: none !important;
    border-left: 2px solid #e9ecef !important;
    border-radius: 0 10px 10px 0 !important;
    padding: 0 14px !important;
    color: #20396c;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 46px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.date-icon-btn:hover {
    background: #f0f2f5 !important;
    color: #d27e26;
}

.date-icon-btn:active {
    transform: scale(0.95);
}

/* Hidden native date input */
.date-native-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    
    .date-icon-btn {
        min-width: 44px;
        min-height: 44px;
        font-size: 16px;
        padding: 0 12px !important;
    }
    .verify-detail-item:nth-child(2) {
    display: flex;
    flex-wrap: wrap;
    }
}

.verify-search .form-control {
    border-radius: 10px !important;
}