/* admin.css - Styles specifically for the admin panel */
:root {
    --primary: #0A192F;
    --secondary: #FF6B35;
    --bg-light: #F8F9FA;
    --text-main: #333;
    --text-light: #666;
    --border: #E0E0E0;
    --white: #FFFFFF;
    --danger: #DC3545;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
}

/* --- Login Screen --- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, #17335C 100%);
}

.login-box {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.admin-logo {
    height: 60px;
    margin-bottom: 20px;
}

.login-box h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary);
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    width: 100%;
}

.btn-primary:hover {
    background-color: #e55a24;
}

.btn-secondary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #17335c;
}

.btn-danger {
    background-color: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #c82333;
}

.error-msg {
    color: var(--danger);
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 20px;
}

.table-container {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
}

.table-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.table-header h3 {
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: #fcfcfc;
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    font-size: 15px;
    color: var(--text-main);
}

.admin-table tbody tr:hover {
    background: #fafafa;
}

.text-center {
    text-align: center !important;
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(10, 25, 47, 0.1);
    color: var(--primary);
}

/* --- Dashboard Layout (Sidebar) --- */
.dashboard-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.admin-sidebar {
    width: 260px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 10;
}

.sidebar-logo {
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo img {
    height: 35px;
    border-radius: 4px;
}

.sidebar-logo h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: var(--white);
}

.sidebar-menu {
    padding: 20px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    text-align: left;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tab-btn i {
    width: 20px;
    text-align: center;
}

.tab-btn:hover {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

.tab-btn.active {
    color: var(--white);
    background: var(--secondary);
}

.sidebar-bottom {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
    overflow-y: auto;
}

.admin-header {
    background: var(--white);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-content {
    padding: 30px;
}
