/* eSIM Whitelabel Styles */

#esim-whitelabel-app {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.esim-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.esim-title {
    text-align: center;
    color: #1a1a2e;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
}

/* Search */
.esim-search {
    margin-bottom: 20px;
}

.esim-search input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.esim-search input:focus {
    outline: none;
    border-color: #667eea;
}

/* Countries List */
.esim-countries-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.esim-country-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.esim-country-item:hover {
    background: #e8f4f8;
    border-color: #667eea;
    transform: translateY(-2px);
}

.esim-country-flag {
    font-size: 32px;
    margin-right: 12px;
}

.esim-country-name {
    font-weight: 500;
    color: #333;
}

/* Loading */
.esim-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Plans Container */
.esim-plans-container {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.esim-back-btn {
    background: none;
    border: none;
    color: #667eea;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.esim-back-btn:hover {
    color: #5a6fd6;
}

/* Plans List */
.esim-plans-list {
    display: grid;
    gap: 20px;
}

.esim-plan-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
}

.esim-plan-info h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
}

.esim-plan-details {
    display: flex;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.esim-plan-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.esim-plan-price {
    text-align: right;
}

.esim-plan-price .price {
    font-size: 32px;
    font-weight: 700;
}

.esim-plan-price .currency {
    font-size: 16px;
    opacity: 0.8;
}

.esim-buy-btn {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.esim-buy-btn:hover {
    background: white;
    color: #667eea;
}

/* Responsive */
@media (max-width: 600px) {
    .esim-countries-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .esim-plan-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .esim-plan-price {
        text-align: center;
    }

    .esim-plan-details {
        justify-content: center;
    }
}

/* Debug Panel */
#esim-debug-panel {
    background: #1a1a2e;
    color: #0f0;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-family: monospace;
    font-size: 12px;
    max-height: 300px;
    overflow-y: auto;
}

#esim-debug-panel strong {
    color: #00ff00;
}
