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

:root {
    --primary: #4F46E5;
    --primary-dark: #3730a3;
    --secondary: #10B981;
    --bg-dark: #111827;
    --bg-sidebar: #1F2937;
    --bg-body: #F3F4F6;
    --surface: #FFFFFF;
    --border: #E5E7EB;
    --text-head: #111827;
    --text-body: #4B5563;
}

body {
    font-family: 'Sarabun', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
}

/* --- Navbar --- */
.navbar {
    background: linear-gradient(to right, #1F2937, #111827) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar .btn-outline-light {
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

.navbar .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* --- Cards --- */
.card {
    background: var(--surface);
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
}

.card-header h4 {
    color: var(--text-head);
    font-weight: 700;
    margin: 0;
}

.card-body {
    padding: 2rem;
}

/* --- Tables --- */
.table-responsive {
    border-radius: 0.75rem;
    overflow: hidden;
}

.table thead {
    background-color: #F9FAFB;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--text-body);
    padding: 1rem;
    border-bottom: 2px solid var(--border);
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: #F9FAFB;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    color: var(--text-head);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

/* --- Badges & Buttons --- */
.badge {
    padding: 0.5em 1em;
    border-radius: 2rem;
    font-weight: 600;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-warning {
    background-color: #F59E0B !important;
    color: white !important;
}

.bg-success {
    background-color: var(--secondary) !important;
}

.btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-info {
    color: white;
    background-color: #3B82F6;
    border: none;
}

.btn-info:hover {
    background-color: #2563EB;
    color: white;
}

/* --- View Details Page --- */
.list-group-item {
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
    border-radius: 0.5rem !important;
}

.img-thumbnail {
    border-radius: 0.5rem;
}

/* Login Page Styling */
.login-container {
    max-width: 400px;
    margin: 4rem auto;
}

.login-card-header {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 2rem;
}