/* =========================================
   BORONTECH - Admin Panel CSS
   ========================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; font-size: 15px; color: #2c3e50; background: #f4f6f9; line-height: 1.5; }
a { text-decoration: none; color: inherit; }

/* LOGIN SCREEN */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 100%);
    padding: 20px;
}
.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.login-logo { text-align: center; margin-bottom: 30px; }

/* ADMIN LAYOUT */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px;
    background: #0a1628;
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
}
.sidebar-brand h3 span { color: #e74c3c; }
.sidebar-menu { list-style: none; padding: 20px 0; flex: 1; }
.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}
.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    color: #fff;
    background: rgba(231,76,60,0.15);
    border-left: 4px solid #e74c3c;
    padding-left: 20px;
}
.sidebar-menu li a i { font-size: 16px; width: 20px; text-align: center; }
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.admin-main { flex: 1; display: flex; flex-direction: column; overflow-x: hidden; }
.admin-topbar {
    background: #fff;
    height: 70px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.admin-topbar-title h2 { font-size: 20px; font-weight: 700; color: #0a1628; }
.admin-topbar-actions { display: flex; align-items: center; gap: 15px; }

.admin-content { padding: 30px; flex: 1; }

/* CARDS */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.card-header h3 { font-size: 17px; font-weight: 700; color: #0a1628; }

/* STATS GRID */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #e9ecef;
}
.stat-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}
.stat-card-info h4 { font-size: 13px; color: #6c757d; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card-info .num { font-size: 28px; font-weight: 800; color: #0a1628; line-height: 1.2; margin-top: 4px; }

/* FORMS */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #34495e;
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #dce2e6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #2c3e50;
    transition: border-color 0.2s;
    background: #fff;
}
.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.15);
}
textarea.form-control { min-height: 90px; resize: vertical; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-primary { background: #e74c3c; color: #fff; }
.btn-primary:hover { background: #c0392b; }
.btn-success { background: #27ae60; color: #fff; }
.btn-success:hover { background: #219653; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-secondary:hover { background: #5a6268; }
.btn-outline-dark { background: transparent; border: 1.5px solid #0a1628; color: #0a1628; }
.btn-outline-dark:hover { background: #0a1628; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; justify-content: center; }

/* ALERTS */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* TABLES */
.table-responsive { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}
.table td {
    padding: 14px 16px;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
    vertical-align: middle;
}
.table tr:hover td { background: #fdfdfd; }

/* BADGES */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }

@media (max-width: 992px) {
    .admin-sidebar { width: 70px; }
    .sidebar-brand h3 span, .sidebar-brand h3, .sidebar-menu li a span, .sidebar-footer { display: none; }
    .sidebar-menu li a { justify-content: center; padding: 15px 0; }
    .stats-cards { grid-template-columns: repeat(2, 1fr); }
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}
