:root {
    --primary: #F18E33;
    --primary-dark: #d47a2a;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --bg-light: #f8f9fa;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, #ffffff 100%);
    color: #333;
    min-height: 100vh;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

.header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 18px;
    opacity: 0.95;
}

.container {
    max-width: 1100px;
    width: 100%;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0 auto 40px;
    max-width: 800px;
}

.tab-card {
    background: white;
    padding: 20px 15px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 3px solid transparent;
}

.tab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.tab-card.active {
    border-color: transparent;
    background: white;
    box-shadow:
        0 0 0 2px rgba(212, 122, 42, 0.85),
        0 18px 40px rgba(0, 0, 0, 0.32);
}


.tab-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.tab-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.tab-description {
    font-size: 13px;
    color: var(--text-muted);
}

.messages {
    margin-bottom: 25px;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 2px solid #bee5eb;
}

.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: center;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.content-wrapper {
    display: flex;
    justify-content: center;
}

.content-section {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 700px;
    text-align: center;
}

.content-section h2 {
    margin-bottom: 35px;
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 600;
}

.upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.upload-form input[type="file"] {
    padding: 20px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    font-size: 14px;
    background: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.upload-form input[type="file"]:hover {
    border-color: var(--primary);
    background: #fff;
}

.upload-form input[type="file"]::file-selector-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 15px;
    transition: var(--transition);
}

.upload-form input[type="file"]::file-selector-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 142, 51, 0.4);
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: var(--bg-light);
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.upload-label:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 14px;
    color: var(--text-muted);
}

.btn-primary {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(241, 142, 51, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 142, 51, 0.5);
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 18px 50px;
    font-size: 18px;
}

.btn-secondary {
    padding: 15px 40px;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(241, 142, 51, 0.3);
}

.env-selection {
    width: 100%;
    max-width: 400px;
    margin: 20px 0;
    text-align: center;
}

.env-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: 0.3px;
}

.env-options {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.env-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.env-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.env-option span {
    font-size: 15px;
    font-weight: 500;
    color: #495057;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 10px;
}

.csv-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    font-size: 14px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.csv-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.csv-table th,
.csv-table td {
    padding: 14px 16px;
    text-align: left;
    white-space: nowrap;
}

.csv-table td {
    border-bottom: 1px solid #e9ecef;
    color: var(--text-dark);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.csv-table tbody tr:nth-child(even) {
    background-color: var(--bg-light);
}

.csv-table tbody tr:hover {
    background-color: #fff3e6;
}

.csv-preview {
    margin-top: 50px;
    text-align: left;
}

.csv-preview h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 22px;
    font-weight: 600;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(241, 142, 51, 0.1);
}

/* Landing Page */
.landing-content {
    background: white;
    padding: 60px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-width: 900px;
    width: 100%;
}

.landing-hero {
    text-align: center;
    margin-bottom: 50px;
}

.landing-hero h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.hero-text {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card-link {
    text-decoration: none;
    color: inherit;
}

.feature-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
    border: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(241, 142, 51, 0.2);
    border-color: var(--primary);
    background: white;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.cta-section {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

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

    .cta-section {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

.header {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 50px;
    text-align: center;
}

.logout-form {
    position: absolute;
    top: 0;
    right: 0;
}

.logout-btn {
    all: unset;
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(241, 142, 51, 0.3);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 142, 51, 0.5);
}

/* Add to style.css */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.page-info {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}