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

:root {
    --primary-red: #e53935;
    --primary-red-hover: #c62828;
    --dark-bg: #111827;
    --sidebar-bg: #1f2937;
    --light-bg: #f3f4f6;
    --white: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
}

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

body {
    background-color: var(--light-bg);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 100;
}
.sidebar-header {
    padding: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    letter-spacing: -0.5px;
}
.sidebar-header span { color: var(--primary-red); }
.sidebar-menu {
    flex-grow: 1;
    padding: 1.5rem 0;
}
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    border-left-color: var(--primary-red);
}
.sidebar-menu a i { font-size: 1.25rem; }

/* Main Content */
.main-content {
    flex-grow: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
}
.top-header {
    background-color: var(--white);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}
.user-profile .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: white;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.2rem;
}
.dashboard-body {
    padding: 2rem;
    flex-grow: 1;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stat-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
}
.stat-icon {
    width: 50px; height: 50px;
    border-radius: 8px;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem;
}
.stat-icon.red { background: #fee2e2; color: #dc2626; }
.stat-icon.blue { background: #dbeafe; color: #2563eb; }
.stat-icon.green { background: #dcfce7; color: #16a34a; }
.stat-info h3 { font-size: 1.5rem; font-weight: 700; color: var(--text-main); }
.stat-info p { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }

/* Table Section */
.table-container {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.table-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
th {
    background-color: #f9fafb;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
td { font-size: 0.9rem; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background-color: #f9fafb; }

/* Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}
.badge-pending { background-color: #fef3c7; color: #d97706; }
.badge-processing { background-color: #e0e7ff; color: #4f46e5; }
.badge-completed { background-color: #d1fae5; color: #059669; }
.badge-rejected { background-color: #fee2e2; color: #dc2626; }

/* Buttons & Forms */
.btn {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background 0.3s;
}
.btn:hover { background-color: var(--primary-red-hover); }
.status-select {
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--white);
    color: var(--text-main);
    font-size: 0.875rem;
    outline: none;
    cursor: pointer;
}
.status-select:focus { border-color: var(--primary-red); }
.status-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Alert */
.alert { padding: 1rem; border-radius: 4px; margin-bottom: 1.5rem; font-weight: 500; font-size: 0.9rem; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Split Screen Login Page Specific */
.login-body {
    background: #111111; /* Darker background for the surrounding area */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 2rem;
}
.login-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: #1f2937; /* Dark panel for form */
}
.login-left {
    flex: 1;
    background: var(--dark-bg);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.05);
}
.login-left::before {
    /* Subtle red gradient overlay to keep it consistent with theme */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.1) 0%, transparent 100%);
    pointer-events: none;
}
.login-left-content {
    position: relative;
    z-index: 10;
}
.login-left-content h1 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.login-left-content p {
    color: #9ca3af;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
.login-illustration {
    max-width: 100%;
    width: 300px;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 8px;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--white);
    padding: 0.6rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-outline:hover {
    background: var(--primary-red);
}

.login-right {
    flex: 1;
    background: #1f2937;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-right-header {
    margin-bottom: 2.5rem;
}
.login-right-header h2 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
}
.form-group { margin-bottom: 1.5rem; position: relative; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.85rem;
    color: #9ca3af;
}
.form-control-icon {
    position: relative;
}
.form-control-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.2rem;
}
.form-control {
    width: 100%;
    padding: 1rem 1rem 1rem 2.8rem;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 6px;
    outline: none;
    color: var(--white);
    transition: all 0.3s;
    font-size: 0.95rem;
}
.form-control:focus { 
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2);
}
.form-control::placeholder {
    color: #4b5563;
}
.login-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}
.login-btn:hover {
    background: var(--primary-red-hover);
}
@media (max-width: 768px) {
    .login-container { flex-direction: column; height: auto; }
    .login-left { display: none; /* Hide illustration on small screens */ }
    .login-right { padding: 3rem 2rem; }
}
