/* ===== CSS VARIABLES / DESIGN TOKENS ===== */
:root {
    --color-bg: #f0f4f8;
    --color-white: #ffffff;
    --color-dark: #2d3748;
    --color-gray-100: #f7fafc;
    --color-gray-200: #edf2f7;
    --color-gray-300: #e2e8f0;
    --color-gray-500: #a0aec0;
    --color-gray-600: #718096;
    --color-gray-700: #4a5568;
    --color-green: #48bb78;
    --color-green-light: #c6f6d5;
    --color-blue: #4299e1;
    --color-blue-light: #bee3f8;
    --color-yellow: #ecc94b;
    --color-red: #fc8181;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50%;

    --sidebar-width: 64px;
    --header-height: 60px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-family);
    background: var(--color-bg);
    color: var(--color-dark);
    line-height: 1.5;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===== LAYOUT ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--color-white);
    border-right: 1px solid var(--color-gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-logo {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--color-gray-500);
    transition: all 0.2s ease;
}

.nav-item svg {
    width: 22px;
    height: 22px;
}

.nav-item:hover {
    background: var(--color-gray-100);
    color: var(--color-dark);
}

.nav-item.active {
    background: var(--color-blue-light);
    color: var(--color-blue);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 24px 32px;
    max-width: 1400px;
}

/* ===== HEADER ===== */
.top-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    color: var(--color-gray-600);
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-logout svg {
    width: 16px;
    height: 16px;
}

.btn-logout:hover {
    background: var(--color-gray-100);
    color: var(--color-dark);
}

/* ===== WELCOME BANNER ===== */
.welcome-banner {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 40px 48px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.welcome-banner h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.welcome-banner p {
    color: var(--color-gray-300);
    font-size: 16px;
}

/* ===== PROJECTS GRID ===== */
.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    display: block;
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.project-avatar {
    width: 48px;
    height: 48px;
    background: var(--color-dark);
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
}

.project-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.project-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--color-gray-600);
}

.action-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-item .icon svg {
    width: 14px;
    height: 14px;
}

/* ===== PROJECT DETAIL PAGE ===== */
.project-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.btn-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    font-size: 18px;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: var(--color-gray-100);
}

.project-title {
    font-size: 28px;
    font-weight: 600;
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

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

/* ===== CARDS ===== */
.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
}

.btn-add {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--color-green);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-add:hover {
    background: #38a169;
}

/* ===== TASKS ===== */
.tasks-section {
    margin-bottom: 24px;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--color-gray-100);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.task-item.completed {
    opacity: 0.6;
}

.task-item.completed .task-title {
    text-decoration: line-through;
}

.task-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-title {
    font-weight: 500;
}

.task-due {
    font-size: 12px;
    color: var(--color-gray-600);
}

.task-actions {
    display: flex;
    gap: 8px;
}

.btn-complete,
.btn-delete {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-complete {
    background: var(--color-green-light);
    color: var(--color-green);
}

.btn-complete:hover {
    background: var(--color-green);
    color: var(--color-white);
}

.btn-delete {
    background: var(--color-gray-200);
    color: var(--color-gray-600);
}

.btn-delete:hover {
    background: var(--color-red);
    color: var(--color-white);
}

/* ===== DRAG AND DROP ===== */
.drag-handle {
    cursor: grab;
    color: var(--color-gray-400);
    font-size: 14px;
    padding: 0 8px;
    user-select: none;
    letter-spacing: -2px;
}

.drag-handle:active {
    cursor: grabbing;
}

.task-item {
    cursor: grab;
    transition: all 0.2s ease, transform 0.1s ease;
}

.task-item.dragging {
    opacity: 0.5;
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
    cursor: grabbing;
}

.tasks-section.drag-over {
    background: var(--color-blue-light);
    border: 2px dashed var(--color-blue);
    border-radius: var(--radius-md);
}

.tasks-section.drag-over .card-header,
.tasks-section.drag-over #pending-tasks,
.tasks-section.drag-over #completed-tasks {
    pointer-events: none;
}

.drop-hint {
    border: 2px dashed var(--color-gray-300);
    border-radius: var(--radius-sm);
    background: var(--color-gray-100);
}

/* Undo button for completed tasks */
.btn-undo {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: all 0.2s ease;
    background: var(--color-blue-light);
    color: var(--color-blue);
}

.btn-undo:hover {
    background: var(--color-blue);
    color: var(--color-white);
}

/* ===== REPORTS ===== */
.report-item {
    margin-bottom: 8px;
}

.report-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-gray-100);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.report-link:hover {
    background: var(--color-gray-200);
}

.report-icon {
    font-size: 18px;
}

.report-title {
    flex: 1;
    font-weight: 500;
}

.report-date {
    font-size: 12px;
    color: var(--color-gray-600);
}

/* ===== STATS CARD ===== */
.stats-card {
    text-align: center;
}

.chart-container {
    margin: 24px 0;
}

#donut-chart {
    max-width: 160px;
    margin: 0 auto;
}

.stats-numbers {
    display: flex;
    justify-content: space-around;
    padding-top: 16px;
    border-top: 1px solid var(--color-gray-200);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
}

.stat-label {
    font-size: 12px;
    color: var(--color-gray-600);
}

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
}

.btn-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 20px;
    color: var(--color-gray-500);
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: var(--color-gray-100);
    color: var(--color-dark);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px var(--color-blue-light);
}

/* Readonly/Disabled form fields */
.form-input:disabled,
.form-input.readonly-field {
    background-color: var(--color-gray-200);
    color: var(--color-gray-600);
    cursor: not-allowed;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--color-blue);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: #3182ce;
}

/* Large Modal for expanded forms */
.modal-large {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Form row for side-by-side fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Textarea styling */
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px var(--color-blue-light);
}

/* Required field indicator */
.required {
    color: var(--color-red);
    font-weight: 400;
}

/* ===== QUILL RICH TEXT EDITOR ===== */
.quill-editor {
    background: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    min-height: 120px;
}

.quill-editor .ql-toolbar {
    border: none;
    border-bottom: 1px solid var(--color-gray-200);
    background: var(--color-gray-100);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.quill-editor .ql-container {
    border: none;
    font-family: var(--font-family);
    font-size: 14px;
    min-height: 80px;
}

.quill-editor .ql-editor {
    min-height: 80px;
    padding: 12px 16px;
}

.quill-editor .ql-editor.ql-blank::before {
    color: var(--color-gray-500);
    font-style: normal;
}

/* Form action buttons */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--color-gray-200);
}

.btn-cancel {
    padding: 12px 24px;
    background: var(--color-gray-200);
    color: var(--color-gray-700);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: var(--color-gray-300);
}

/* Clickable task items */
.task-item .task-info {
    cursor: pointer;
    flex: 1;
}

.task-item .task-info:hover .task-title {
    color: var(--color-blue);
}

/* Edit button */
.btn-edit {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--color-blue);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-edit:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

/* Delete button */
.btn-delete {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--color-red);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-delete:hover {
    background: #e53e3e;
    transform: translateY(-1px);
}

/* ===== VIEW MODAL STYLES ===== */
.view-content {
    padding: 0;
}

.view-field {
    margin-bottom: 20px;
}

.view-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.view-value {
    font-size: 15px;
    color: var(--color-dark);
    padding: 12px;
    background: var(--color-gray-100);
    border-radius: var(--radius-sm);
    min-height: 20px;
}

.view-value:empty::after {
    content: "—";
    color: var(--color-gray-400);
}

.view-note {
    min-height: 80px;
}

.view-note p {
    margin: 0 0 8px 0;
}

.view-url a {
    color: var(--color-blue);
    text-decoration: none;
    word-break: break-all;
}

.view-url a:hover {
    text-decoration: underline;
}

.view-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .view-row {
        grid-template-columns: 1fr;
    }
}

/* Modal footer */
.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--color-gray-200);
}

/* Status badges in view */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

.status-badge.pending {
    background: var(--color-yellow-light);
    color: #b45309;
}

.status-badge.done {
    background: var(--color-green-light);
    color: var(--color-green);
}

/* Report item layout for view/edit */
.report-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.report-item:hover {
    background: var(--color-gray-200);
}

.report-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    cursor: pointer;
}

.report-info:hover .report-title {
    color: var(--color-blue);
}

.report-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-link {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--color-blue-light);
    color: var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-link:hover {
    background: var(--color-blue);
    color: white;
}

/* Type badges */
.type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

.type-badge.report {
    background: var(--color-blue-light);
    color: var(--color-blue);
}

.type-badge.invoice {
    background: var(--color-green-light);
    color: var(--color-green);
}

/* ===== UTILITIES ===== */
.loading,
.empty,
.error {
    text-align: center;
    padding: 40px;
    color: var(--color-gray-500);
}

.error {
    color: var(--color-red);
}

/* ===== DATA TABLES ===== */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.data-table th {
    background: var(--color-gray-100);
    padding: 12px 16px;
    font-weight: 600;
    color: var(--color-gray-700);
    border-bottom: 2px solid var(--color-gray-200);
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-gray-200);
    vertical-align: middle;
}

.data-table tr:hover {
    background: var(--color-gray-100);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.project-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--color-gray-200);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-gray-700);
    text-transform: uppercase;
}

.clickable-text {
    cursor: pointer;
    color: var(--color-blue);
    text-decoration: none;
}

.clickable-text:hover {
    text-decoration: underline;
}

/* ===== ACCESS DENIED ===== */
.access-denied {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.access-denied-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    max-width: 400px;
    box-shadow: var(--shadow-md);
}

.access-denied-card h1 {
    font-size: 24px;
    margin-bottom: 16px;
}

.access-denied-card p {
    color: var(--color-gray-600);
    margin-bottom: 24px;
}

.access-denied-card a {
    color: var(--color-blue);
    font-weight: 500;
}

.login-form {
    margin-top: 24px;
    margin-bottom: 24px;
    text-align: left;
}

.login-form .form-input {
    margin-bottom: 16px;
    background: var(--color-gray-100);
}

.login-form .form-input:focus {
    background: var(--color-white);
}

.support-link {
    font-size: 14px;
    color: var(--color-gray-500);
    text-decoration: none;
}

.support-link:hover {
    text-decoration: underline;
    color: var(--color-blue);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        position: fixed;
        bottom: 0;
        top: auto;
        padding: 8px 16px;
        border-right: none;
        border-top: 1px solid var(--color-gray-200);
    }

    .sidebar-logo {
        margin-bottom: 0;
        margin-right: auto;
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 101;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        padding: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .sidebar-nav {
        flex-direction: row;
    }

    .main-content {
        margin-left: 0;
        margin-bottom: 72px;
        padding: 16px;
    }

    .welcome-banner {
        padding: 24px;
    }

    .welcome-banner h1 {
        font-size: 24px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== INFO MESSAGES ===== */
.info-message {
    background-color: var(--color-blue-light);
    border-left: 4px solid var(--color-blue);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    color: var(--color-dark);
    font-size: 14px;
    line-height: 1.5;
}

.info-message p {
    margin: 0;
}

.info-message strong {
    font-weight: 700;
    color: var(--color-blue);
}

/* ===== ADMIN PANEL ===== */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-gray-200);
    padding-bottom: 10px;
}

.tab-btn {
    padding: 8px 16px;
    border: none;
    background: none;
    font-weight: 500;
    color: var(--color-gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--color-blue);
    border-bottom-color: var(--color-blue);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-list {
    /* max-height: 400px;  Removed for full page layout */
    /* overflow-y: auto;   Removed for full page layout */
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-gray-200);
}

.admin-item:last-child {
    border-bottom: none;
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-meta {
    font-size: 12px;
    color: var(--color-gray-500);
}

.badge-blue {
    background: var(--color-blue-light);
    color: var(--color-blue);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

.badge-gray {
    background: var(--color-gray-200);
    color: var(--color-gray-600);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

.checkbox-list {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid var(--color-gray-300);
    padding: 8px;
    border-radius: var(--radius-sm);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.hidden {
    display: none !important;
}


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

/* ===== CONFIRMATION MODAL ===== */
.confirm-content {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.confirm-content h3 {
    margin-bottom: 12px;
    font-size: 20px;
    color: var(--color-dark);
}

.confirm-content p {
    margin-bottom: 24px;
    color: var(--color-gray-600);
    line-height: 1.6;
}

.confirm-content .form-actions {
    justify-content: center;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    gap: 16px;
}

/* Override generic btn-delete (which is icon-only) for the confirm button */
.confirm-content .btn-delete {
    width: auto;
    height: auto;
    padding: 12px 24px;
    background: var(--color-red);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.confirm-content .btn-delete:hover {
    background: #e53e3e;
    /* darker red */
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(229, 62, 62, 0.2);
}

.confirm-content .btn-cancel {
    background: var(--color-gray-200);
    color: var(--color-gray-700);
}

.confirm-content .btn-cancel:hover {
    background: var(--color-gray-300);
}

/* ===== ADMIN ITEM ACTIONS ===== */
.item-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.admin-btn-edit,
.admin-btn-delete {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.admin-btn-edit {
    background: var(--color-blue);
    color: var(--color-white);
}

.admin-btn-edit:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

.admin-btn-delete {
    background: var(--color-red) !important;
    color: var(--color-white) !important;
    padding: 8px 20px !important;
    min-width: fit-content !important;
}

.admin-btn-delete:hover {
    background: #e53e3e;
    transform: translateY(-1px);
}