/* Admin Panel - Modern Minimalist Monochrome Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  --color-primary: #003b73;
  --color-secondary: #005ba8;
  --color-accent: #0066cc;
  --color-gray: #6b6b6b;
  --color-light-gray: #e5e8ec;
  --color-bg: #ffffff;
  --color-bg-alt: #faf8f3;
  --color-cream: #f5f5dc;
  --color-light-blue: #e8f2f7;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0,59,115,0.1);
  --shadow-md: 0 4px 16px rgba(0,59,115,0.15);
  --shadow-lg: 0 8px 32px rgba(0,59,115,0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background: #f5f5f5;
    color:var(--color-primary);
    line-height: 1.6;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #003b73 0%, #005ba8);
    padding: 20px;
}

.login-box {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 100%;
}

.login-box h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-align: center;
}

.login-box > p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.login-footer {
    margin-top: 25px;
    text-align: center;
}

.btn-register {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 8px;
    background: #e9ecef;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: 0.2 ease; 
}

.btn-register:hover {
    background: #d6d6d6;
}

/* Admin Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--color-primary);
    color: white;
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.sidebar-header p {
    font-size: 13px;
    color: #999;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav a {
    display: block;
    padding: 14px 20px;
    color: #b3b3b3;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: white;
}

.sidebar-nav a.logout {
    color: #ffffff;
    margin-top: 20px;
}

.sidebar-nav a.logout:hover {
    background: rgba(255, 68, 68, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
    background: #f5f5f5;
}

.content-header {
    margin-bottom: 40px;
}

.content-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.stat-card h3 {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.quick-actions h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-action:hover {
    background: var(--color-secondary);
    transform: translateY(-1px);
}

/* Forms */
.form-container {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.form-container h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-secondary);
}

.form-container h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 30px 0 20px 0;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    color: var(--color-secondary);
}

.form-container h3:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d4d4d4;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
}

.small-text {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

/* Buttons */
.btn-primary {
    padding: 14px 30px;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #2d2d2d;
    transform: translateY(-1px);
}

.btn-secondary {
    padding: 14px 30px;
    background: #e5e5e5;
    color:var(--color-secondary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #d4d4d4;
}

/* Tables */
.table-container {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.table-container h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1a1a1a;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead tr {
    background: var(--color-secondary);
    color: white;
}

table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}

table tbody tr:hover {
    background: #f9f9f9;
}

.table-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.btn-edit, .btn-delete {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    margin-right: 8px;
    transition: all 0.2s;
}

.btn-edit {
    background: #1a1a1a;
    color: white;
}

.btn-edit:hover {
    background: #2d2d2d;
}

.btn-delete {
    background: #ff4444;
    color: white;
}

.btn-delete:hover {
    background: #cc0000;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 500;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .admin-wrapper {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}