/* Custom CSS untuk Sistem Telaga Bagus */

/* --- Layout & Navigation Styles --- */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
    color: #334155;
}

.navbar-custom {
    background-color: #0f172a !important;
}

.sidebar-link {
    color: #475569;
    text-decoration: none;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-link i {
    font-size: 1.15rem;
    margin-right: 12px;
    color: #64748b;
    transition: color 0.2s ease;
}

.sidebar-link:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.sidebar-link:hover i {
    color: #2563eb;
}

.sidebar-link.active {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.sidebar-link.active i {
    color: #2563eb;
}

.offcanvas-header {
    background-color: #0f172a !important;
}

/* --- Auth / Login Component --- */
.login-page {
    min-height: 100vh;
    background: radial-gradient(circle at 10% 15%, rgba(37, 99, 235, 0.15), transparent 30%),
                radial-gradient(circle at 90% 85%, rgba(59, 130, 246, 0.12), transparent 35%),
                #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    max-width: 440px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 2.25rem 2rem 1.75rem;
    text-align: center;
    color: #ffffff;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.login-brand-icon {
    width: 54px;
    height: 54px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.35);
    color: #60a5fa;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.3);
}

.login-body {
    padding: 2.25rem 2rem;
}

.login-input-group .input-group-text {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
    font-size: 1.1rem;
}

.login-input-group .form-control {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
    font-size: 0.95rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.login-input-group .form-control:focus {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: none;
}

.login-input-group:focus-within .input-group-text {
    background-color: #ffffff;
    border-color: #3b82f6;
    color: #2563eb;
}

.login-btn-submit {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

.login-btn-submit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.35);
}

/* --- Tabel & Kartu Ukuran --- */
.kartu-ukuran {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    min-width: 220px;
    font-size: 0.85rem;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}

.kartu-ukuran hr {
    margin: 5px 0;
    border-color: #ccc;
}

/* Desain teks untuk catatan */
.teks-catatan {
    color: #0d6efd; /* Warna biru Bootstrap */
    font-weight: bold;
}

/* Membuat tabel lebih rapi */
.tabel-butik th {
    text-align: center;
    vertical-align: middle;
}

/* --- Indikator Peringatan & Status Elegan --- */

/* Border aksen sisi kiri dan latar belakang lembut untuk baris tabel */
.status-row-danger {
    background-color: rgba(239, 68, 68, 0.04) !important;
    border-left: 4px solid #ef4444 !important;
}

.status-row-warning {
    background-color: rgba(245, 158, 11, 0.05) !important;
    border-left: 4px solid #f59e0b !important;
}

.status-row-success {
    background-color: rgba(16, 185, 129, 0.04) !important;
    border-left: 4px solid #10b981 !important;
}

.status-row-normal {
    border-left: 4px solid transparent !important;
}

/* Lencana / Badge Peringatan Kustom */
.badge-status {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.badge-status-danger {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.badge-status-warning {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-status-success {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-status-normal {
    background-color: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Alert Banner modern */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}
.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}
/* --- Form Controls & Inputs Elegan --- */
.form-control, .form-select {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    font-size: 0.925rem;
    color: #1e293b;
    transition: all 0.2s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.form-label {
    color: #475569;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
}

/* --- Tombol-Tombol Elegan --- */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-outline-primary {
    color: #2563eb;
    border-color: #93c5fd;
}

.btn-outline-primary:hover {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-color: #2563eb;
}

.btn-outline-danger {
    color: #dc2626;
    border-color: #fca5a5;
}

.btn-outline-danger:hover {
    background-color: #fef2f2;
    color: #b91c1c;
    border-color: #dc2626;
}

/* --- Kartu & Seksi Form (Tambah Pesanan) --- */
.form-section-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.form-section-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.85rem 1.25rem;
}

.form-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-body {
    padding: 1.25rem;
}

/* Search Group Styling */
.search-group {
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.search-group .input-group-text {
    border: none;
}

.search-group .form-control {
    border: none;
}

.search-group .form-control:focus {
    box-shadow: none;
}

.search-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}