/* FoodChoo GL Reconciliation - Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 350px;
    background: #111111;
    border-right: 1px solid #222;
    overflow-y: auto;
    padding: 20px;
}

.sidebar h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #81c784;
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 6px;
}

.scenario-group {
    margin-bottom: 20px;
}

.scenario-group-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.scenario-item {
    padding: 12px;
    background: #1a1a1a;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.scenario-item:hover {
    background: #252525;
}

.scenario-item.active {
    background: #1e3a1e;
    border-left: 3px solid #81c784;
}

.scenario-item.dragging {
    opacity: 0.5;
}

.drag-handle {
    cursor: grab;
    padding: 0 8px 0 0;
    color: #666;
    font-size: 14px;
    user-select: none;
}

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

.scenario-content {
    flex: 1;
}

.scenario-item .title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.scenario-item .subtitle {
    font-size: 12px;
    color: #888;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    background: #2a2a2a;
    border-radius: 3px;
    font-size: 10px;
    margin-right: 5px;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #222;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    font-size: 14px;
    color: #888;
}

/* Scenario Details */
.scenario-header {
    margin-bottom: 30px;
}

.scenario-header h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.scenario-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.meta-item {
    font-size: 14px;
    color: #aaa;
}

.meta-item strong {
    color: #fff;
}

.description-box {
    padding: 15px;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 15px;
}

.description-box h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #81c784;
}

.description-box p {
    color: #ddd;
    font-size: 14px;
    line-height: 1.5;
}

.description-box pre {
    color: #ddd;
    font-size: 12px;
    overflow-x: auto;
    white-space: pre-wrap;
    font-family: 'Monaco', 'Courier New', monospace;
}

/* GL Entries Table */
.entries-section {
    margin-top: 30px;
}

.entries-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px;
    background: #1a1a1a;
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    font-weight: 600;
}

td {
    padding: 12px;
    border-bottom: 1px solid #222;
    font-size: 14px;
}

.account-code {
    font-family: monospace;
    color: #81c784;
}

.debit {
    color: #4fc3f7;
}

.credit {
    color: #ffb74d;
}

.amount-formula {
    font-family: monospace;
    font-size: 12px;
    color: #aaa;
}

/* Welcome Screen */
.welcome {
    text-align: center;
    padding: 60px 20px;
}

.welcome h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.welcome p {
    font-size: 16px;
    color: #888;
    margin-bottom: 40px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature {
    padding: 30px;
    background: #1a1a1a;
    border-radius: 8px;
    text-align: center;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature p {
    font-size: 14px;
    color: #888;
}

/* Loading & Error States */
.loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

.error {
    text-align: center;
    padding: 40px;
    color: #f44336;
}