:root {
    --odp-header-bg: #2b2a5c;
    --odp-bg: #f8fafc;
    --odp-card-bg: #ffffff;
    --odp-primary: #fdd835;
    --odp-primary-hover: #fbc02d;
    --odp-text-dark: #1e293b;
    --odp-text-light: #64748b;
    --odp-border: #e2e8f0;
    --odp-radius: 12px;
}

.gpg-dashboard {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 900px;
    margin: 40px auto;
    color: var(--odp-text-dark);
}

/* 1. HEADER */
.gpg-header {
    background-color: var(--odp-header-bg);
    padding: 50px 20px;
    text-align: center;
    border-radius: var(--odp-radius);
    margin-bottom: 30px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gpg-header h1 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
}

.gpg-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 15px 0 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 2. MAIN AREA */
.gpg-main-area {
    background: var(--odp-card-bg);
    border-radius: var(--odp-radius);
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--odp-border);
}

/* 3. TABS */
.gpg-tabs-nav {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--odp-border);
}

.gpg-tab-trigger {
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--odp-text-light);
    padding: 0 0 15px 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.gpg-tab-trigger.active {
    color: #3b82f6;
}

.gpg-tab-trigger.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #3b82f6;
}

/* 4. FIELD GROUPS */
.gpg-controls-row {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.gpg-field-group {
    flex: 1;
    min-width: 200px;
}

.gpg-field-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
}

.gpg-input,
.gpg-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--odp-text-dark);
}

/* 5. DROPZONE (Exactly like Image Compressor) */
.gpg-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 50px 20px;
    text-align: center;
    background: #fff;
    margin: 30px 0;
    cursor: pointer;
    transition: border-color 0.2s;
}

.gpg-dropzone:hover {
    border-color: #94a3b8;
}

.gpg-dropzone p {
    font-size: 1.25rem;
    color: #334155;
    margin: 0;
}

.gpg-dropzone.dragover {
    background: #f1f5f9;
    border-color: #3b82f6;
}

/* 6. BUTTONS */
.gpg-buttons-left {
    display: flex;
    gap: 15px;
}

.gpg-btn-primary {
    background: var(--odp-primary) !important;
    color: #000 !important;
    font-weight: 700 !important;
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    text-transform: uppercase;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.gpg-btn-primary:hover {
    background: var(--odp-primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gpg-btn-auto {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.gpg-btn-auto:hover {
    background: #e2e8f0;
}

/* 7. MODAL */
.gpg-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.gpg-modal-panel {
    background: white;
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.gpg-modal-head {
    background: var(--odp-header-bg);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.gpg-modal-body {
    padding: 30px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    background: #f8fafc;
}

.gpg-modal-foot {
    padding: 15px 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* RESPONSIVENESS */
@media (max-width: 768px) {
    .gpg-header h1 {
        font-size: 2.2rem;
    }

    .gpg-main-area {
        padding: 25px;
    }

    .gpg-controls-row {
        flex-direction: column;
        gap: 20px;
    }

    .gpg-single-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Data Schema Badge Style */
.gpg-schema-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
}

.gpg-schema-card h4 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #475569;
}

.gpg-schema-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.schema-badge {
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

/* --- TASK 1: Fix Button Visual Hierarchy --- */
#gpg-download-sample {
    background-color: #FFFFFF !important;
    color: #0d9488 !important;
    border: 2px solid #0d9488 !important;
    text-shadow: none !important;
}

#gpg-download-sample:hover {
    background-color: #0d9488 !important;
    color: #FFFFFF !important;
}

/* --- TASK 2: Enhanced Mobile Responsiveness --- */
@media (max-width: 768px) {
    .gpg-buttons-left {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .gpg-buttons-left button {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }

    .gpg-header {
        padding: 30px 15px !important;
    }

    .gpg-header h1 {
        font-size: 1.8rem !important;
    }

    .gpg-tabs-nav {
        gap: 15px !important;
        justify-content: center;
    }

    .gpg-tab-trigger {
        font-size: 0.9rem !important;
        padding-bottom: 10px !important;
    }

    .gpg-main-area {
        padding: 20px !important;
    }
}