:root {
    --primary: #2563eb;
    --secondary: #64748b;
    --success: #22c55e;
    --danger: #ef4444;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --border: #e2e8f0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text);
    margin: 0;
    padding: 20px;
    line-height: 1.5;
}

.container {
    max-width: 98%;
    margin: 0 auto;
}

header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    margin: 0;
    font-size: 1.5rem;
}

/* Cards & Sections */
.card {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background-color: #eff6ff;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--secondary);
}

input,
select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

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

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-success {
    background: var(--success);
    color: white;
}

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

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.5rem;
    /* Reduced padding */
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    /* Smaller font */
}

th {
    font-weight: 600;
    color: var(--secondary);
}

/* Utilities */
.hidden {
    display: none;
}

.flex {
    display: flex;
    gap: 1rem;
}

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

.status-income {
    color: var(--success);
}

.status-expense {
    color: var(--danger);
}

/* Split View for Verification */
.verify-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.form-pane {
    flex: 1;
    min-width: 400px;
}

.preview-pane {
    flex: 1;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    height: 100%;
    min-height: 800px;
    display: flex;
    flex-direction: column;
}

#document-preview-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    margin-top: 10px;
    position: relative;
    height: 100%;
}

#pdf-preview {
    width: 100%;
    height: 100%;
    min-height: 750px;
    border: none;
}

#img-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 900px) {
    .verify-container {
        flex-direction: column;
    }

    .preview-pane {
        width: 100%;
        min-height: 400px;
    }
}

/* Chef Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1000px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.metric-card h3 {
    font-size: 0.875rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
}

/* Chart Container */
.chart-container {
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding-top: 20px;
}

.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    gap: 2px;
}

.bar {
    width: 100%;
    min-height: 1px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
}

.bar-income {
    background-color: var(--success);
    opacity: 0.7;
}

.bar-expense {
    background-color: var(--danger);
    opacity: 0.7;
}

.bar-label {
    text-align: center;
    font-size: 0.75rem;
    color: var(--secondary);
    margin-top: 5px;
}

/* Simple List */
.simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simple-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.simple-list li:last-child {
    border-bottom: none;
}

.simple-list .amount {
    font-weight: 600;
}