/* Green Travel E-SIM - Production Styles with Enhanced Features */
@import url('./styles.css');
@import url('./styles-enhanced.css');

/* Enhanced Language Selection */
.language-container-enhanced {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    max-width: 700px;
    width: 100%;
}

.selection-tabs {
    display: flex;
    background: var(--light-gray);
    border-radius: var(--border-radius-lg);
    padding: 0.25rem;
    margin-bottom: 2rem;
}

.selection-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.selection-tab.active {
    background: var(--primary-green);
    color: white;
    box-shadow: var(--shadow-sm);
}

.language-dropdown-container {
    text-align: left;
    margin-bottom: 2rem;
}

/* Enhanced Language Dropdown Styles */
.language-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.language-dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.language-dropdown-toggle:hover {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.selected-language .flag {
    font-size: 1.25rem;
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.language-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-category {
    padding: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

.language-category:last-child {
    border-bottom: none;
}

.category-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.language-category .language-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.language-category .language-option:hover {
    background: var(--gray-50);
}

.language-category .language-option.active {
    background: var(--primary-green);
    color: white;
}

.language-category .language-option .flag {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.continue-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.continue-btn:hover {
    background: var(--green-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.dropdown-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

#languageSelect {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    background: white;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

#languageSelect optgroup {
    font-weight: 600;
    color: var(--primary-green);
    padding: 0.5rem 0;
}

#languageSelect option {
    padding: 0.5rem;
    font-size: 0.95rem;
}

.confirm-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.language-regions {
    max-height: 400px;
    overflow-y: auto;
}

.language-region {
    margin-bottom: 2rem;
}

.region-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1rem;
    text-align: left;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.language-option {
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.language-option:hover {
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.language-option.active {
    border-color: var(--primary-green);
    background: var(--primary-green-light);
}

.language-option .flag {
    font-size: 1.5rem;
}

.language-option .lang-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.language-option .lang-english {
    font-size: 0.75rem;
    color: var(--text-light);
}

.language-detection {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
}

.detected-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.currency-preview {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--primary-green-light);
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary-green);
}

.preview-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--primary-green-dark);
}

/* Enhanced Navigation */
.language-nav-enhanced {
    position: relative;
    margin-right: 1rem;
}

.current-language-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.current-language-display:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-sm);
}

.current-flag {
    font-size: 1.125rem;
}

.current-name {
    font-weight: 500;
    color: var(--text-dark);
}

.dropdown-arrow {
    color: var(--text-light);
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.language-dropdown-nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 280px;
    max-width: 350px;
    z-index: 300;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.region-section {
    margin-bottom: 0.5rem;
}

.region-header {
    padding: 0.75rem 1rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--light-gray);
    border-bottom: 1px solid var(--border-gray);
}

.language-option-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-gray);
}

.language-option-compact:last-child {
    border-bottom: none;
}

.language-option-compact:hover {
    background: var(--primary-green-light);
}

.language-option-compact .flag {
    font-size: 1.125rem;
}

.language-option-compact .name {
    font-weight: 500;
    color: var(--text-dark);
}

.currency-nav-enhanced {
    margin-right: 1rem;
}

.nav-currency-select-enhanced {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    background: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.nav-currency-select-enhanced:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-sm);
}

/* Enhanced SMS Authentication */
.verification-importance {
    background: var(--primary-green-light);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-green);
}

.importance-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--primary-green-dark);
}

.importance-item:last-child {
    margin-bottom: 0;
}

.importance-item i {
    color: var(--primary-green);
    width: 1.25rem;
}

.phone-input-enhanced {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.country-code-select {
    min-width: 140px;
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
}

.phone-input-field {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
}

.phone-input-field:focus {
    border-color: var(--primary-green);
    outline: none;
}

.auth-info-enhanced {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--light-gray);
    border-radius: var(--border-radius-lg);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.info-item:last-child {
    margin-bottom: 0;
}

.sms-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.verification-info-enhanced {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--primary-green-light);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--primary-green);
}

.sent-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.phone-display {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-green);
    margin: 0.75rem 0;
}

.delivery-info {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

.code-input-enhanced {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.75rem;
    font-family: monospace;
    padding: 1rem;
    border: 3px solid var(--border-gray);
    border-radius: var(--border-radius-lg);
    background: var(--light-gray);
}

.code-input-enhanced:focus {
    border-color: var(--primary-green);
    background: white;
    outline: none;
}

.code-help {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.verification-actions-enhanced {
    margin-bottom: 2rem;
}

.verify-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.resend-section {
    text-align: center;
}

.resend-section p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.resend-btn {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.attempts-remaining {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #fef3cd;
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    color: #92400e;
}

/* Test Product Styles */
.test-products-section {
    margin-bottom: 3rem;
}

.section-header-inline {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3cd 0%, #fde68a 100%);
    border-radius: var(--border-radius-lg);
    border: 2px dashed #f59e0b;
}

.section-header-inline h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.section-header-inline p {
    font-size: 0.875rem;
    color: #78350f;
}

.test-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.test-product-card {
    background: white;
    border: 3px solid #f59e0b;
    border-radius: var(--border-radius-xl);
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.test-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
}

.test-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-lg);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.test-product-content {
    text-align: center;
    padding-top: 1rem;
}

.test-product-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.test-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.test-price {
    font-size: 2rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 1.5rem;
}

.test-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.test-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-dark);
    justify-content: center;
}

.test-features .feature-item i {
    color: #f59e0b;
}

.test-buy-btn {
    background: #f59e0b;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    width: 100%;
}

.test-buy-btn:hover {
    background: #d97706;
}

/* Enhanced Plan Cards */
.plan-card.enhanced {
    position: relative;
    overflow: hidden;
}

.plan-card.enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green) 0%, #34d399 100%);
}

.local-provider {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.local-provider i {
    font-size: 0.625rem;
}

.price-period {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.feature-item.primary {
    font-weight: 600;
    color: var(--primary-green);
}

/* Enhanced eSIM Cards */
.esim-card.enhanced {
    position: relative;
}

.esim-iccid {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.esim-usage-detailed {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--border-radius-lg);
}

.usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.usage-header h4 {
    font-weight: 600;
    color: var(--text-dark);
}

.last-updated {
    font-size: 0.75rem;
    color: var(--text-light);
}

.usage-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.usage-primary {
    text-align: left;
}

.usage-amount-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}

.usage-total {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.usage-percentage-ring {
    position: relative;
}

.usage-percentage-ring text {
    font-family: 'Inter', sans-serif;
    fill: var(--text-dark);
}

.usage-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 0.75rem;
    background: white;
    border-radius: var(--border-radius-md);
}

.breakdown-item span:first-child {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.breakdown-item span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.daily-usage-chart {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius-md);
}

.daily-usage-chart h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.usage-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 80px;
    gap: 0.25rem;
}

.usage-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    position: relative;
}

.usage-bar {
    width: 100%;
    background: var(--primary-green);
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    margin-bottom: 0.5rem;
    transition: height 0.3s ease;
}

.day-label {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.day-usage {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-dark);
}

.usage-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.detail-item span:first-child {
    color: var(--text-light);
}

.detail-item span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

/* Mobile Responsiveness for Enhanced Features */
@media (max-width: 768px) {
    .language-container-enhanced {
        padding: 2rem;
        margin: 1rem;
    }
    
    .selection-tabs {
        margin-bottom: 1.5rem;
    }
    
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .language-dropdown-nav {
        max-width: 300px;
        right: -50px;
    }
    
    .phone-input-enhanced {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .country-code-select {
        min-width: auto;
    }
    
    .usage-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .usage-breakdown {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .test-products-grid {
        grid-template-columns: 1fr;
    }
    
    .current-language-display {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .nav-currency-select-enhanced {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .language-container-enhanced {
        padding: 1.5rem;
    }
    
    .language-grid {
        grid-template-columns: 1fr;
    }
    
    .verification-info-enhanced {
        padding: 1rem;
    }
    
    .code-input-enhanced {
        font-size: 1.5rem;
        letter-spacing: 0.5rem;
    }
    
    .usage-amount-large {
        font-size: 1.5rem;
    }
    
    .usage-bars {
        height: 60px;
    }
}

/* Print Styles */
@media print {
    .test-products-section,
    .language-nav-enhanced,
    .currency-nav-enhanced {
        display: none !important;
    }
}