/* ============================
   Klincheck - Full Stylesheet
   ============================ */

/* --- CSS Variables --- */
:root {
    --primary: #1a73e8;
    --primary-dark: #1558b0;
    --primary-light: #e8f0fe;
    --secondary: #34a853;
    --accent: #fbbc04;
    --danger: #ea4335;
    --info: #4285f4;
    --dark: #202124;
    --gray-900: #3c4043;
    --gray-700: #5f6368;
    --gray-500: #9aa0a6;
    --gray-300: #dadce0;
    --gray-100: #f1f3f4;
    --white: #ffffff;
    --bg: #f8f9fa;
    --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 6px 10px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --sidebar-width: 260px;
    --gradient: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
    --gradient-dark: linear-gradient(135deg, #1558b0 0%, #2d8f47 100%);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--gray-900);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}
button { cursor: pointer; }

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-900);
    border: 1px solid var(--gray-300);
}
.btn-secondary:hover {
    background: var(--gray-300);
}
.btn-success {
    background: var(--secondary);
    color: var(--white);
}
.btn-success:hover {
    background: #2d8f47;
}
.btn-danger {
    background: var(--danger);
    color: var(--white);
}
.btn-danger:hover {
    background: #c5221f;
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-900);
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}
.form-control::placeholder {
    color: var(--gray-500);
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235f6368' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.form-text {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 4px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.file-upload {
    position: relative;
}
.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px dashed var(--gray-300);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}
.file-upload-label:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.file-name {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* --- Navbar (Public) --- */
.navbar {
    background: var(--white);
    padding: 0 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}
.navbar-menu a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}
.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--primary);
}
.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}
.navbar-actions {
    display: flex;
    gap: 12px;
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-900);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    background: var(--gradient);
    padding: 100px 20px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}
.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
    position: relative;
}
.hero .btn {
    font-size: 1.05rem;
    padding: 14px 36px;
    position: relative;
}

/* --- Services Section (Landing) --- */
.services-section {
    padding: 80px 20px;
}
.services-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--dark);
}
.services-section .subtitle {
    text-align: center;
    color: var(--gray-700);
    margin-bottom: 48px;
    font-size: 1.05rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--gray-100);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.service-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    background: var(--primary-light);
    color: var(--primary);
}
.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--dark);
}
.service-card p {
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.5;
}
.service-card .badge-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 12px;
}
.badge-api {
    background: #e8f5e9;
    color: #2e7d32;
}
.badge-manual {
    background: #fff3e0;
    color: #e65100;
}

/* --- Footer (Public) --- */
.footer {
    background: var(--dark);
    color: var(--gray-500);
    padding: 48px 20px 24px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}
.footer h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1rem;
}
.footer a {
    color: var(--gray-500);
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.footer a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

/* --- Auth Pages --- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    padding: 20px;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}
.auth-card h2 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.6rem;
    color: var(--dark);
}
.auth-card .subtitle {
    text-align: center;
    color: var(--gray-700);
    margin-bottom: 28px;
    font-size: 0.9rem;
}
.auth-card .brand {
    text-align: center;
    margin-bottom: 24px;
}
.auth-card .brand a {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* --- Dashboard Layout --- */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--dark);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}
.sidebar-brand {
    padding: 20px 24px;
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-nav {
    padding: 16px 0;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.05);
    border-left-color: var(--primary);
}
.sidebar-nav a .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}
.sidebar-divider {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 8px 0;
}
.sidebar-section-title {
    padding: 12px 24px 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-500);
    font-weight: 700;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}
.top-bar {
    background: var(--white);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 50;
}
.top-bar h1 {
    font-size: 1.3rem;
    color: var(--dark);
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
}
.page-content {
    padding: 32px;
}

/* --- Dashboard Cards --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}
.stat-card:hover {
    box-shadow: var(--shadow-md);
}
.stat-card.green { border-left-color: var(--secondary); }
.stat-card.orange { border-left-color: var(--accent); }
.stat-card.red { border-left-color: var(--danger); }
.stat-card.blue { border-left-color: var(--info); }
.stat-card h3 {
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

/* --- Account Info Card --- */
.account-info {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}
.account-info h3 {
    margin-bottom: 16px;
    color: var(--dark);
    font-size: 1.1rem;
}
.info-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}
.info-row:last-child { border-bottom: none; }
.info-row .label {
    font-weight: 600;
    color: var(--gray-700);
    min-width: 160px;
    font-size: 0.9rem;
}
.info-row .value {
    color: var(--dark);
    font-size: 0.95rem;
}

/* --- Quick Actions --- */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.action-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}
.action-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.action-card .action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
    color: var(--primary);
}
.action-card h4 {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 4px;
}
.action-card p {
    font-size: 0.8rem;
    color: var(--gray-700);
}

/* --- Service Request Cards --- */
.request-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}
.request-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}
.request-card:hover {
    box-shadow: var(--shadow-md);
}
.request-card-header {
    background: var(--gradient);
    padding: 20px 24px;
    color: var(--white);
}
.request-card-header h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.request-card-header p {
    font-size: 0.8rem;
    opacity: 0.85;
}
.request-card-body {
    padding: 24px;
}

/* Section divider for long forms */
.form-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}
.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.form-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.form-section-title .collapse-icon {
    transition: var(--transition);
    font-size: 0.8rem;
}
.form-section-title .collapse-icon.collapsed {
    transform: rotate(-90deg);
}
.form-section-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}
.form-section-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
}

/* --- Modal --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.modal-overlay.active {
    display: flex;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
}
.modal-header h3 {
    font-size: 1.2rem;
    color: var(--dark);
}
.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.modal-close:hover {
    background: var(--danger);
    color: var(--white);
}
.modal-body {
    padding: 24px;
}
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* --- Status Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}
.badge-pending {
    background: #fff3e0;
    color: #e65100;
}
.badge-inprogress {
    background: #e3f2fd;
    color: #1565c0;
}
.badge-completed {
    background: #e8f5e9;
    color: #2e7d32;
}
.badge-failed {
    background: #fce4ec;
    color: #c62828;
}
.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}
.badge-count {
    background: var(--danger);
    color: var(--white);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* --- Tables --- */
.table-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}
.table-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-100);
}
.table-header h3 {
    font-size: 1.1rem;
    color: var(--dark);
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 14px 20px;
    text-align: left;
    font-size: 0.9rem;
}
th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
}
tr {
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}
tr:hover {
    background: var(--gray-100);
}
td { color: var(--gray-700); }
.table-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

/* --- Toast Notification --- */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--primary);
}
.toast.success { border-left-color: var(--secondary); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--accent); }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: var(--gray-900);
}
.toast-close {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 1.1rem;
}

/* --- Spinner --- */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
.spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius);
}
.loading-overlay.active {
    display: flex;
}

/* --- Admin Service Cards --- */
.admin-service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
}
.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.admin-card-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-100);
}
.admin-card-header h3 {
    font-size: 1.05rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-card-body {
    padding: 0;
}
.admin-request-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}
.admin-request-row:hover {
    background: var(--gray-100);
}
.admin-request-row:last-child {
    border-bottom: none;
}
.admin-request-info {
    flex: 1;
}
.admin-request-info .user-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}
.admin-request-info .request-date {
    font-size: 0.8rem;
    color: var(--gray-500);
}
.admin-request-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Status Dropdown */
.status-dropdown {
    position: relative;
}
.status-dropdown-btn {
    padding: 6px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.status-dropdown-btn:hover {
    border-color: var(--primary);
}
.status-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    display: none;
    z-index: 20;
    overflow: hidden;
    margin-top: 4px;
}
.status-dropdown-menu.active {
    display: block;
}
.status-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-900);
}
.status-dropdown-menu button:hover {
    background: var(--gray-100);
}
.admin-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    text-align: center;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    transition: var(--transition);
}
.filter-tab.active,
.filter-tab:hover {
    background: var(--primary);
    color: var(--white);
}

/* --- Detail Modal (Admin) --- */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.detail-item {
    padding: 8px 0;
}
.detail-item .detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.detail-item .detail-value {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    word-break: break-all;
}

/* --- Radio Group --- */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.radio-option {
    position: relative;
}
.radio-option input {
    position: absolute;
    opacity: 0;
}
.radio-option label {
    display: block;
    padding: 8px 18px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}
.radio-option input:checked + label {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .mobile-toggle {
        display: block;
    }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .services-grid { grid-template-columns: 1fr; }
    .navbar-menu { display: none; }
    .navbar-menu.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 16px;
    }
    .mobile-toggle { display: block; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .page-content { padding: 20px; }
    .top-bar { padding: 12px 20px; }
    .admin-service-cards { grid-template-columns: 1fr; }
    .request-cards { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr 1fr; }
    .auth-card { padding: 28px 20px; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
    .radio-group { flex-direction: column; }
}
