:root {
    --primary: #00875A;
    --primary-gradient: linear-gradient(135deg, #00C9A7 0%, #00875A 100%);
    --surface: #ffffff;
    --background: #f0f4f8;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.gp-validator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.gp-validator-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gp-validator-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 201, 167, 0.1);
    color: var(--primary);
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.gp-validator-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(to right, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gp-validator-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Grid */
.gp-validator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .gp-validator-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.gp-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

/* Upload Area */
.gp-upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.gp-upload-zone:hover, .gp-upload-zone.drag-active {
    border-color: var(--primary);
    background: rgba(0, 201, 167, 0.05);
    transform: translateY(-2px);
}

.gp-upload-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.gp-upload-text {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.gp-upload-subtext {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Controls */
.gp-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gp-control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.gp-control-label {
    font-weight: 600;
    display: flex;
    flex-direction: column;
}

.gp-control-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.25rem;
}

/* Switch Toggle */
.gp-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.gp-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gp-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.gp-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .gp-slider {
    background: var(--primary-gradient);
}

input:checked + .gp-slider:before {
    transform: translateX(20px);
}

/* Canvas Preview */
.gp-canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background:url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="10" height="10" fill="%23f1f5f9" /><rect x="10" y="10" width="10" height="10" fill="%23f1f5f9" /><rect x="0" y="10" width="10" height="10" fill="%23ffffff" /><rect x="10" y="0" width="10" height="10" fill="%23ffffff" /></svg>'); 
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 4px; /* Slight visual radius for raw square */
}

/* Instructions */
.gp-instructions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.gp-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gp-step-num {
    background: var(--text-main);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.gp-step-text h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.gp-step-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
}
