:root {
    --primary: #1a56db;
    --primary-dark: #1e429f;
    --secondary: #3b82f6;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1f2937;
    --light: #f3f4f6;
    --white: #ffffff;
    /*--sidebar-bg: #1e3a5f;*/
    --sidebar-bg: #10b981;
    --sidebar-width: 280px;
}


* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
/* body { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; } */
/* body{
    background-image: url('../images/back.jpg');
            background-image: url('/images/back.jpg');
            background-size: cover;
            background-position: center;
} */

.auth-container { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 20px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 1100px; width: 100%; background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.auth-left { background: linear-gradient(135deg, var(--sidebar-bg) 0%, #2d5a87 100%); padding: 60px 40px; display: flex; flex-direction: column; justify-content: center; color: var(--white); position: relative; overflow: hidden; }
.auth-left::before { content: ''; position: absolute; top: -50%; right: -50%; width: 100%; height: 100%; background: rgba(255,255,255,0.05); border-radius: 50%; }
.auth-left h1 { font-size: 2.5rem; margin-bottom: 15px; font-weight: 700; }
.auth-left p { font-size: 1.1rem; opacity: 0.9; line-height: 1.6; }
.auth-left .university-logo { width: 80px; height: 80px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 30px; font-size: 2rem; }
.auth-right { padding: 50px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header h2 { color: var(--dark); font-size: 1.8rem; margin-bottom: 8px; }
.auth-header p { color: #6b7280; }

.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; margin-bottom: 8px; color: var(--dark); font-weight: 500; font-size: 0.9rem; }
.form-group label .required { color: var(--danger); }
.form-control { width: 100%; padding: 14px 16px; border: 2px solid #e5e7eb; border-radius: 12px; font-size: 1rem; transition: all 0.3s ease; background: #fafafa; }
.form-control:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.1); }
.password-wrapper { position: relative; }
.password-wrapper .form-control { padding-right: 50px; }
.toggle-password { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #9ca3af; font-size: 1.1rem; transition: color 0.2s; }
.toggle-password:hover { color: var(--primary); }

.btn { padding: 14px 28px; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: var(--white); width: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(26, 86, 219, 0.3); }
.btn-success { background: linear-gradient(135deg, var(--success) 0%, #059669 100%); color: var(--white); }
.btn-danger { background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%); color: var(--white); }
.btn-warning { background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%); color: var(--white); }
.btn-info { background: linear-gradient(135deg, var(--info) 0%, #2563eb 100%); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }
  
.auth-footer { text-align: center; margin-top: 25px; color: #6b7280; }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.name-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }

.dashboard-wrapper { display: flex; min-height: 100vh; background: #f1f5f9; }
.sidebar { width: var(--sidebar-width); background: var(--sidebar-bg); color: var(--white); position: fixed; height: 100vh; overflow-y: auto; z-index: 1000; transition: all 0.3s ease; }
.sidebar-header { padding: 25px 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-header .logo { font-size: 1.5rem; font-weight: 700; margin-bottom: 5px; }
.sidebar-header .logo-sub { font-size: 0.8rem; opacity: 0.7; }
.user-profile-card { padding: 25px 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.user-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,0.2); margin-bottom: 15px; }
.user-avatar-placeholder { width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 15px; color: var(--white); }
.user-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 5px; }
.user-matric { font-size: 0.85rem; opacity: 0.8; font-family: monospace; }
.sidebar-nav { padding: 20px 0; }
.nav-item { display: flex; align-items: center; padding: 14px 25px; color: rgba(255,255,255,0.8); text-decoration: none; transition: all 0.3s ease; border-left: 4px solid transparent; gap: 12px; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,0.1); color: var(--white); border-left-color: var(--accent); }
.nav-item i { font-size: 1.2rem; width: 24px; text-align: center; }
.main-content { margin-left: var(--sidebar-width); flex: 1; padding: 0; min-height: 100vh; }
.top-bar { background: var(--white); padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.top-bar h2 { color: var(--dark); font-size: 1.3rem; }
.top-bar-actions { display: flex; align-items: center; gap: 15px; }
.logout-btn { color: var(--danger); text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; transition: all 0.3s; }
.logout-btn:hover { background: #fef2f2; }
.content-area { padding: 30px; }

.card { background: var(--white); border-radius: 16px; padding: 25px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); margin-bottom: 25px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #f3f4f6; }
.card-header h3 { color: var(--dark); font-size: 1.2rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--white); border-radius: 16px; padding: 25px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); display: flex; align-items: center; gap: 20px; transition: transform 0.3s; }
.stat-card:hover { transform: translateY(-3px); }
.stat-icon { width: 60px; height: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.stat-icon.blue { background: #dbeafe; color: #1e40af; }
.stat-icon.green { background: #d1fae5; color: #065f46; }
.stat-icon.orange { background: #fef3c7; color: #92400e; }
.stat-icon.red { background: #fee2e2; color: #991b1b; }
.stat-info h4 { font-size: 1.8rem; color: var(--dark); margin-bottom: 5px; }
.stat-info p { color: #6b7280; font-size: 0.9rem; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #f3f4f6; }
.data-table th { background: #f8fafc; color: #475569; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.data-table tr:hover { background: #f8fafc; }
.data-table td { color: #334155; font-size: 0.95rem; }

.badge { padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; display: inline-block; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-paid { background: #d1fae5; color: #065f46; }
.badge-failed { background: #fee2e2; color: #991b1b; }
.badge-in_process { background: #dbeafe; color: #1e40af; }
.badge-on_transit { background: #c7d2fe; color: #3730a3; }
.badge-delivered { background: #d1fae5; color: #065f46; }
.badge-sent_email { background: #e0e7ff; color: #4338ca; }
.badge-completed { background: #d1fae5; color: #065f46; }

.tracking-timeline { position: relative; padding-left: 30px; }
.tracking-timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: #e5e7eb; }
.timeline-item { position: relative; padding-bottom: 25px; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #d1d5db; border: 2px solid var(--white); box-shadow: 0 0 0 2px #d1d5db; }
.timeline-item.active::before { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.timeline-item.current::before { background: var(--primary); box-shadow: 0 0 0 2px var(--primary); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 2px var(--primary); } 50% { box-shadow: 0 0 0 6px rgba(26, 86, 219, 0.3); } 100% { box-shadow: 0 0 0 2px var(--primary); } }
.timeline-item h4 { font-size: 1rem; color: var(--dark); margin-bottom: 5px; }
.timeline-item p { font-size: 0.85rem; color: #6b7280; }
.timeline-item .time { font-size: 0.8rem; color: #9ca3af; margin-top: 3px; }

.payment-card { background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%); color: var(--white); border-radius: 16px; padding: 30px; margin-bottom: 25px; }
.payment-card h3 { margin-bottom: 20px; font-size: 1.3rem; }
.payment-details { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.payment-detail { background: rgba(255,255,255,0.1); padding: 15px; border-radius: 10px; }
.payment-detail label { font-size: 0.8rem; opacity: 0.8; display: block; margin-bottom: 5px; }
.payment-detail span { font-size: 1.1rem; font-weight: 600; }
.payment-logos { display: flex; gap: 15px; align-items: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); }

.form-select { width: 100%; padding: 14px 16px; border: 2px solid #e5e7eb; border-radius: 12px; font-size: 1rem; background: var(--white); cursor: pointer; transition: all 0.3s; }
.form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.1); }
textarea.form-control { resize: vertical; min-height: 100px; }

.admin-sidebar { background: linear-gradient(180deg, #1f2937 0%, #111827 100%); }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.filter-bar { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-bar .form-control, .filter-bar .form-select { width: auto; min-width: 200px; }
.action-btns { display: flex; gap: 8px; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.info-item { background: #f8fafc; padding: 18px; border-radius: 12px; border-left: 4px solid var(--primary); }
.info-item label { display: block; font-size: 0.8rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.info-item span { font-size: 1.1rem; color: var(--dark); font-weight: 600; word-break: break-all; }

.empty-state { text-align: center; padding: 60px 20px; color: #9ca3af; }
.empty-state i { font-size: 4rem; margin-bottom: 20px; display: block; }
.empty-state h3 { color: #6b7280; margin-bottom: 10px; }



@media (max-width: 768px) {
    .auth-grid { grid-template-columns: 1fr; }
    .auth-left { display: none; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .name-row { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .payment-details { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
}

.site-footer{
    margin-top:60px;
    background:#0f172a;
    color:#fff;
}

.footer-container{

    max-width:1300px;
    margin:auto;
    padding:55px 25px;

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:45px;

}

.footer-brand h3,
.footer-links h4,
.footer-contact h4{

    margin-bottom:18px;
    color:#fff;

}

.footer-brand p{

    color:#cbd5e1;
    line-height:1.8;

}

.footer-version{

    display:inline-block;
    margin-top:18px;
    padding:8px 16px;

    background:#1e293b;
    color:#94a3b8;

    border-radius:30px;
    font-size:13px;

}

.footer-links ul{

    list-style:none;
    padding:0;
    margin:0;

}

.footer-links li{

    margin-bottom:12px;

}

.footer-links a{

    color:#cbd5e1;
    text-decoration:none;
    transition:.3s;

}

.footer-links a:hover{

    color:#fff;
    padding-left:6px;

}

.footer-contact p{

    margin:12px 0;
    color:#cbd5e1;

}

.footer-contact i{

    width:24px;
    color:#4f46e5;

}

.footer-bottom{

    border-top:1px solid rgba(255,255,255,.08);

    max-width:1300px;
    margin:auto;

    display:flex;
    justify-content:space-between;
    align-items:center;

    flex-wrap:wrap;

    gap:15px;

    padding:20px 25px;

    color:#94a3b8;
    font-size:14px;

}

#backToTop{

    position:fixed;

    right:25px;
    bottom:25px;

    width:50px;
    height:50px;

    border:none;
    border-radius:50%;

    background:#2563eb;
    color:#fff;

    display:none;

    justify-content:center;
    align-items:center;

    cursor:pointer;

    box-shadow:0 8px 18px rgba(0,0,0,.25);

    transition:.3s;

    z-index:999;

}

#backToTop:hover{

    background:#1d4ed8;
    transform:translateY(-4px);

}

@media(max-width:768px){

.footer-bottom{

    flex-direction:column;
    text-align:center;

}

}