@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

#gsc-wrapper {
    font-family: 'Inter', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #f8fafc;
    border-radius: 24px;
}

/* Header */
.gsc-header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    margin-bottom: 30px;
    color: white;
}

.gsc-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: white;
}

.gsc-header p {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0;
    color: white;
}

/* Country Selector */
.gsc-country-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.gsc-country-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background: white;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
}

.gsc-country-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.2);
}

.gsc-country-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

.gsc-country-btn .flag {
    font-size: 1.2rem;
}

/* Input Section */
.gsc-input-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.gsc-input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.gsc-input-group {
    flex: 1;
    min-width: 200px;
}

.gsc-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.gsc-input-field, .gsc-select-field {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.gsc-input-field:focus-within,
.gsc-select-field:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.gsc-currency {
    padding: 14px 16px;
    background: #f1f5f9;
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
    border-right: 2px solid #e2e8f0;
}

.gsc-input-field input,
.gsc-select-field select {
    flex: 1;
    padding: 14px 16px;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    background: white;
    width: 100%;
}

.gsc-select-field select {
    cursor: pointer;
}

/* Calculate Button */
.gsc-calculate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.gsc-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}

.gsc-calculate-btn:active {
    transform: translateY(0);
}

/* Result Cards */
.gsc-result-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.gsc-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.gsc-card:hover {
    transform: translateY(-3px);
}

.gsc-card-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.gsc-card-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.gsc-card-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
}

.gsc-card-green { border-top: 4px solid #10b981; }
.gsc-card-blue { border-top: 4px solid #3b82f6; }
.gsc-card-red { border-top: 4px solid #ef4444; }
.gsc-card-purple { border-top: 4px solid #8b5cf6; }

/* Breakdown Table */
.gsc-breakdown {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.gsc-breakdown h3,
.gsc-visual h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
}

.gsc-table-wrapper {
    overflow-x: auto;
}

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

.gsc-table th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gsc-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #374151;
}

.gsc-table tr:last-child td {
    border-bottom: none;
    font-weight: 700;
    color: #1e293b;
    background: #f8fafc;
}

.gsc-table tr:hover td {
    background: #f8fafc;
}

.gsc-positive { color: #10b981 !important; font-weight: 600 !important; }
.gsc-negative { color: #ef4444 !important; font-weight: 600 !important; }

/* Visual Bars */
.gsc-visual {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.gsc-bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.gsc-bar-label {
    width: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.gsc-bar-track {
    flex: 1;
    height: 12px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.gsc-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
    width: 0%;
}

.gsc-bar-green { background: linear-gradient(90deg, #10b981, #34d399); }
.gsc-bar-red { background: linear-gradient(90deg, #ef4444, #f87171); }
.gsc-bar-orange { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.gsc-bar-pct {
    width: 45px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
}

/* Country Info */
.gsc-country-info {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border: 1px solid #667eea30;
    border-radius: 16px;
    padding: 20px 25px;
}

.gsc-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gsc-info-item {
    text-align: center;
}

.gsc-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.gsc-info-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4c1d95;
}

/* Responsive */
@media (max-width: 768px) {
    .gsc-result-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .gsc-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gsc-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gsc-result-cards {
        grid-template-columns: 1fr 1fr;
    }
    .gsc-country-btn span:last-child {
        display: none;
    }
    .gsc-card-value {
        font-size: 1rem;
    }
}
