/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0a192f;
    --primary-light: #172a45;
    --primary-lighter: #233554;
    --secondary: #c5a880;
    --secondary-dark: #b09168;
    --secondary-light: #dfcea7;
    --accent: #f5f5f7;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #ffffff;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --success: #10b981;
    --success-bg: #ecfdf5;
    --success-text: #047857;
    
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --warning-text: #b45309;
    
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --danger-text: #b91c1c;
    
    --info: #3b82f6;
    --info-bg: #eff6ff;
    --info-text: #1d4ed8;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.04), 0 4px 6px -2px rgba(0,0,0,0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.06), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 20px rgba(197, 168, 128, 0.15);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    background-color: var(--primary);
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid var(--secondary);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    height: 50px;
    width: auto;
}

.brand-text h1 {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.2;
}

.brand-text p {
    font-size: 0.75rem;
    color: var(--secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
    background-color: rgba(255,255,255,0.05);
}

.btn-nav {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--primary) !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 10px rgba(197, 168, 128, 0.3);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(197, 168, 128, 0.4);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Banner / Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95), rgba(23, 42, 69, 0.9)), url('../images/banner_default.svg') center/cover no-repeat;
    color: var(--text-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--secondary);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.1), transparent);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInDown 0.8s ease;
}

.hero p {
    font-size: 1.25rem;
    color: var(--border);
    margin-bottom: 35px;
    font-weight: 300;
}

/* Main layouts */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.25rem;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: var(--radius-full);
}

/* Grid & Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 30px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-light);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* General Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-light);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--primary);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

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

.btn-danger:hover {
    background-color: #dc2626;
    box-shadow: var(--shadow-md);
}

.btn-reset {
    background-color: #e2e8f0;
    color: #475569;
}

.btn-reset:hover {
    background-color: #cbd5e1;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    background-color: #ffffff;
    transition: var(--transition);
    color: var(--text-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.25);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Media Capture and Signature Pad UI */
.media-container {
    background-color: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.media-container video {
    width: 100%;
    max-width: 320px;
    border-radius: var(--radius-sm);
    background-color: #000;
    display: none;
}

.media-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    margin-top: 10px;
}

.signature-pad-wrapper {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    position: relative;
}

.signature-pad-wrapper canvas {
    width: 100%;
    height: 180px;
    background-color: #f8fafc;
    border-radius: var(--radius-sm);
    cursor: crosshair;
    touch-action: none;
}

/* Alert Notification Banner */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background-color: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Admin Sidebar Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background-color: var(--primary);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    border-right: 2px solid var(--secondary);
    transition: var(--transition);
    flex-shrink: 0;
}

.admin-logo {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-logo img {
    height: 40px;
}

.admin-logo h2 {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.2;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #cbd5e1;
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    color: var(--secondary);
    background-color: rgba(255,255,255,0.03);
    border-left-color: var(--secondary);
}

.admin-content {
    flex-grow: 1;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-header {
    background-color: var(--bg-card);
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.admin-header-title h2 {
    font-size: 1.25rem;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-profile img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--secondary);
}

.admin-profile-info {
    text-align: right;
}

.admin-profile-info h4 {
    font-size: 0.9rem;
    line-height: 1.1;
}

.admin-profile-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.admin-body {
    padding: 30px;
    flex-grow: 1;
    overflow-y: auto;
}

/* Dashboard Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card.waiting { border-top-color: var(--warning); }
.stat-card.served { border-top-color: var(--success); }

.stat-info h3 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    font-size: 2.5rem;
    color: #cbd5e1;
}

.stat-card.waiting .stat-icon { color: rgba(245, 158, 11, 0.3); }
.stat-card.served .stat-icon { color: rgba(16, 185, 129, 0.3); }

/* Table styles */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 16px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

th {
    background-color: #f8fafc;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover td {
    background-color: #f8fafc;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.badge-waiting {
    background-color: var(--warning-bg);
    color: var(--warning-text);
}

.badge-served {
    background-color: var(--info-bg);
    color: var(--info-text);
}

.badge-done {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.badge-cancelled {
    background-color: var(--danger-bg);
    color: var(--danger-text);
}

/* Footer Section */
.footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 40px 0 20px;
    margin-top: auto;
    border-top: 4px solid var(--secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
}

.footer-logo img {
    height: 50px;
}

.footer-logo h3 {
    color: var(--text-light);
    font-size: 1.15rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Filter controls on Data list & Reports */
.filter-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) auto;
    gap: 16px;
    align-items: end;
}

/* Detail UI elements */
.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section-title {
    font-size: 1.1rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-row span:first-child {
    font-weight: 600;
    color: var(--text-muted);
}

.detail-row span:last-child {
    color: var(--text-main);
    text-align: right;
}

/* Keyframes animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive fixes */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--primary);
        padding: 20px;
        border-bottom: 2px solid var(--secondary);
        gap: 15px;
    }
    .nav-links.show {
        display: flex;
    }
    .admin-wrapper {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid var(--secondary);
    }
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.2rem;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Print CSS */
@media print {
    body {
        background-color: #ffffff;
        color: #000000;
    }
    .navbar, .footer, .btn, .filter-card, .admin-sidebar, .admin-header, .no-print {
        display: none !important;
    }
    .admin-wrapper {
        display: block;
    }
    .admin-content {
        padding: 0;
    }
    .table-responsive {
        border: none;
        box-shadow: none;
        overflow: visible;
    }
    table {
        width: 100% !important;
    }
    th, td {
        padding: 8px 12px;
        border: 1px solid #cbd5e1 !important;
    }
}
