/* SMARTCHILLI Sage Export v2.0 - Production CSS */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header with Logo and Text side-by-side */
.header {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.sage-export-logo {
    height: 80px;
    width: auto;
    flex-shrink: 0;
}

.sage-export-header-text {
    flex: 1;
    min-width: 300px;
}

.sage-export-header-text h1 {
    color: #1a1a1a;
    font-size: 28px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.sage-export-subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Upload Zone */
.upload-zone {
    background: white;
    padding: 48px 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    text-align: center;
    border: 2px dashed #d0d0d0;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-zone:hover {
    border-color: #AB106F;
    background: #fef5f9;
}

.upload-zone.dragover {
    border-color: #DE007A;
    background: #fce7f3;
    border-style: solid;
}

.upload-zone h3 {
    margin: 16px 0 8px 0;
    font-size: 20px;
    color: #1a1a1a;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-text {
    color: #666;
    margin-bottom: 16px;
}

.file-input {
    display: none;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #E91E8C 0%, #AB106F 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(233, 30, 140, 0.25);
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(233, 30, 140, 0.35);
}

/* Error Messages */
.error {
    background: #fff3f3;
    color: #c53030;
    padding: 20px;
    border-radius: 12px;
    margin-top: 16px;
    border: 1px solid #fecaca;
    display: none;
}

/* Warning Messages */
.warning {
    background: #fff4e5;
    color: #b45309;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #fbbf24;
    display: none;
}

.warning strong {
    color: #92400e;
}

/* Statistics Cards */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    display: none;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #E91E8C;
    margin-bottom: 4px;
}

.stat-label {
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-warning .stat-value {
    color: #f59e0b;
}

/* Sections */
.section {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    display: none;
}

.section h2 {
    color: #1a1a1a;
    font-size: 20px;
    margin-bottom: 20px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
}

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

th {
    background: #f8f8f8;
    color: #1a1a1a;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 2px solid #e0e0e0;
}

tr {
    border-bottom: 1px solid #f0f0f0;
}

tbody tr {
    cursor: pointer;
}

tbody tr:hover {
    background: #fef5f9;
}

td {
    padding: 14px 16px;
    color: #333;
    font-size: 14px;
}

/* Download Section */
.download-section {
    text-align: center;
    margin-top: 24px;
    display: none;
}

/* Filter Info */
#filterInfo {
    background: #fef5f9;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #AB106F;
    display: none;
}

#filterInfo strong {
    color: #E91E8C;
}

/* Load More Container */
#loadMoreContainer {
    text-align: center;
    margin-top: 20px;
    display: none;
}

/* Utility Classes */
.hidden {
    display: none;
}
