/* Blade-only static CSS (no Vite build required) */
body {
    font-family: Figtree, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

table {
    border-collapse: collapse;
}

.prose p {
    margin-bottom: 0.75rem;
}

/* Admin Theme */
.admin-theme {
    background: #f3f5fb;
    color: #1f2937;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 265px 1fr;
}

.admin-sidebar {
    background: #ffffff;
    color: #334155;
    border-right: 1px solid #dbe2ee;
    padding: 1rem;
    transition: transform 0.2s ease;
}

.admin-brand {
    border: 1px solid #dfe7f3;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f6fc 100%);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.admin-brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #111827;
    font-weight: 700;
    text-decoration: none;
}

.admin-brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #22c55e);
}

.admin-brand-sub {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #64748b;
}

.admin-nav {
    display: grid;
    gap: 0.35rem;
}

.admin-nav-link {
    color: #334155;
    text-decoration: none;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    font-size: 0.88rem;
    border: 1px solid #edf2f8;
    background: #fff;
    font-weight: 600;
}

.admin-nav-link:hover {
    background: #eff5ff;
    border-color: #d7e6ff;
    color: #2563eb;
}

.admin-nav-link.is-active {
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    border-color: #2563eb;
}

.admin-main {
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #ffffff;
    border-bottom: 1px solid #dbe2ee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.4rem;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.admin-menu-btn {
    display: none;
    border: 1px solid #cdd8ea;
    background: #ffffff;
    color: #1f2937;
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-user {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 600;
}

.admin-content {
    padding: 1.4rem;
}

.admin-card {
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.admin-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.56rem 0.95rem;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
}

.btn-success {
    background: #047857;
    color: #fff;
}

.btn-warning {
    background: #b45309;
    color: #fff;
}

.btn-dark {
    background: #0f172a;
    color: #fff;
}

.btn-ghost {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #1e293b;
}

.btn:hover {
    filter: brightness(1.03);
}

.admin-alert {
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    font-size: 0.9rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead th {
    text-align: left;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: #64748b;
    text-transform: uppercase;
    padding: 0.78rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f2f6fe;
}

.admin-table tbody td {
    padding: 0.82rem 1rem;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
    font-size: 0.9rem;
}

.admin-table tbody td.text-right {
    white-space: nowrap;
}

.admin-table tbody td.text-right a {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dbe5ff;
    background: #eef4ff;
    color: #1d4ed8;
    border-radius: 8px;
    padding: 0.28rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.admin-table tbody td.text-right form {
    display: inline-flex;
    margin-left: 0.35rem;
}

.admin-table tbody td.text-right button {
    border: 1px solid #ffd6d6;
    background: #fff1f2;
    color: #b91c1c;
    border-radius: 8px;
    padding: 0.28rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.admin-table tbody tr:hover {
    background: #f8fbff;
}

.dataTables_wrapper {
    padding: 0.75rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 0.75rem;
}

.dataTables_wrapper .dataTables_filter {
    text-align: right;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 0.35rem 0.55rem !important;
    background: #fff !important;
    margin-left: 0.35rem !important;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #fff !important;
    padding: 0.25rem 0.4rem !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid #d5deeb !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #334155 !important;
    padding: 0.3rem 0.62rem !important;
    margin-left: 0.25rem !important;
    min-width: 34px !important;
    font-weight: 600 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_info {
    color: #64748b;
    font-size: 0.82rem;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 0.45rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border-color: #2563eb !important;
    color: #1d4ed8 !important;
    background: #eef4ff !important;
}

.admin-form-grid {
    display: grid;
    gap: 1rem;
}

.admin-input,
.admin-select,
.admin-textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.58rem 0.7rem;
    background: #fff;
    font-size: 0.92rem;
    color: #0f172a;
}

.admin-textarea {
    min-height: 90px;
}

.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.admin-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
}

.admin-error {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #dc2626;
}

.admin-theme .ck.ck-editor {
    width: 100%;
}

.admin-theme .ck.ck-editor__main > .ck-editor__editable {
    min-height: 180px;
    border-radius: 0 0 10px 10px;
}

.admin-theme .ck.ck-toolbar {
    border-radius: 10px 10px 0 0;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-stat-card {
    border-radius: 14px;
    padding: 1rem 1.1rem;
    color: #0f172a;
    border: 1px solid #dbe4f0;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.dashboard-stat-card.tone-blue {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border-color: #dbeafe;
}

.dashboard-stat-card.tone-green {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
    border-color: #d1fae5;
}

.dashboard-stat-card.tone-amber {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border-color: #ffedd5;
}

.dashboard-stat-card.tone-purple {
    background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
    border-color: #ede9fe;
}

.dashboard-stat-card.tone-slate {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-color: #e2e8f0;
}

.dashboard-stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    font-weight: 700;
}

.dashboard-stat-value {
    margin-top: 0.4rem;
    font-size: 1.85rem;
    line-height: 1;
    font-weight: 800;
    color: #0f172a;
}

.dashboard-stat-meta {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: #64748b;
}

.dashboard-chart-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-chart-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.65rem;
}

.dashboard-chart-wrap {
    position: relative;
    min-height: 280px;
}

@media (max-width: 1024px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px;
        z-index: 40;
        transform: translateX(-100%);
        box-shadow: 0 16px 45px rgba(15, 23, 42, 0.18);
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-menu-btn {
        display: inline-flex;
    }

    .admin-content {
        padding: 1rem;
    }

    .dataTables_wrapper {
        padding: 0.5rem;
    }

    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: left;
    }

    .dashboard-chart-wrap {
        min-height: 240px;
    }
}

@media (min-width: 768px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-chart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
