/* Troto Theme - Modern Dark Mode Design */

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* CSS Color Variables */
:root {
    --primary-color: #d0bcff;
    --secondary-color: #111011;
    --neutral-text-color: #fff;
    --neutral-ring-color: rgba(255, 255, 255, 0.5);
    --active-ring-color: #1BB3F9;
    --text-success-color: #00FF00;
    --text-error-color: #FF0000;
}

/* Base Body Styles */
body {
    background: var(--secondary-color);
    color: var(--neutral-text-color);
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    position: relative;
    overflow: hidden;
}

.app-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(208, 188, 255, 0.03) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Header Styles */
.app-header {
    padding: 1.5rem 1.5rem;
    position: relative;
    z-index: 10;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d0bcff;
    letter-spacing: -0.02em;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-switcher a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.25rem 0.5rem;
}

.lang-switcher a:hover {
    color: #d0bcff;
}

.lang-switcher a.active {
    color: #d0bcff;
    font-weight: 600;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.app-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 5;
}

/* Footer */
.app-footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.app-footer p {
    max-width: 600px;
    margin: 0 auto;
}

/* Form Inputs - Troto Style */
input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
select {
    width: 100%;
    background: var(--secondary-color);
    color: var(--neutral-text-color);
    border: 1px solid var(--neutral-ring-color);
    border-radius: 5px;
    padding: 15px 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
select:focus {
    background: var(--secondary-color);
    color: var(--neutral-text-color);
    border: 1px solid var(--active-ring-color);
    outline: none;
}

/* Custom Ring Utility */
.custom-ring {
    background: var(--secondary-color);
    color: var(--neutral-text-color);
    border: 1px solid var(--neutral-ring-color);
    border-radius: 5px;
    padding: 15px 10px;
}

/* Background Color Utilities */
.neutral-bg-color {
    background: var(--secondary-color);
    color: var(--neutral-text-color);
}

.neutral-bg-color:hover {
    background: var(--secondary-color);
    color: var(--neutral-text-color);
}

.active-bg-color {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Buttons - Troto Style */
button,
button[type="submit"],
.btn-primary {
    width: 100%;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 15px 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(208, 188, 255, 0.4);
}

button:hover:not(:disabled),
button[type="submit"]:hover:not(:disabled),
.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(208, 188, 255, 0.6);
    background: #e0d4ff;
}

button:disabled,
button[type="submit"]:disabled,
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Ring Utilities */
.active-ring {
    border: 1px solid var(--primary-color);
}

.neutral-ring {
    border: 1px solid var(--neutral-ring-color);
}

.neutral-ring-color-only {
    border-color: var(--neutral-ring-color);
}

.active-ring-color-only {
    border-color: var(--active-ring-color);
}

/* Text Color Utilities */
.active-text {
    color: var(--primary-color);
}

.neutral-text {
    color: var(--neutral-text-color);
}

.text-success {
    color: var(--text-success-color);
}

.text-error {
    color: var(--text-error-color);
}

/* Card/Container - Modern Dark */
.payment-card {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 480px;
    width: 100%;
    backdrop-filter: blur(20px);
}

/* Currency Toggle - Troto Style */
.currency-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 5px;
    border: 1px solid var(--neutral-ring-color);
}

.currency-toggle button {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--neutral-text-color);
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.currency-toggle button.active {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(208, 188, 255, 0.3);
}

.currency-toggle button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(208, 188, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Status Icons */
.status-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.status-icon.success {
    color: var(--text-success-color);
    border-color: var(--text-success-color);
}

.status-icon.failure {
    color: var(--text-error-color);
    border-color: var(--text-error-color);
}

.status-icon.pending {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Pulse animation for waiting */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Read-only fields */
.field-readonly {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Labels */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--neutral-text-color);
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

/* Form Groups */
.form-group {
    margin-bottom: 0.1rem;
}

/* Amount Display (Read-only) */
.amount-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    padding: 1.5rem;
    background: rgba(208, 188, 255, 0.1);
    border: 1px solid rgba(208, 188, 255, 0.2);
    border-radius: 8px;
    margin: 1rem 0;
    letter-spacing: -0.02em;
}

/* Select Platform */
select {
    padding: 20px 10px;
    cursor: pointer;
}

select option {
    background: var(--secondary-color);
    color: var(--neutral-text-color);
    padding: 0.75rem;
}

/* Transaction Details Box */
.transaction-details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.transaction-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.transaction-details .detail-row:last-child {
    border-bottom: none;
}

.transaction-details .detail-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.transaction-details .detail-value {
    color: var(--neutral-text-color);
    font-weight: 600;
    font-family: ui-monospace, 'SFMono-Regular', 'Monaco', 'Courier New', monospace;
}

/* Error Messages */
.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--text-error-color);
    color: var(--text-error-color);
    padding: 1rem;
    border-radius: 5px;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Success Messages */
.success-message {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--text-success-color);
    color: var(--text-success-color);
    padding: 1rem;
    border-radius: 5px;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 640px) {
    .payment-card {
        padding: 1.5rem;
        margin: 1rem;
        max-width: 100%;
    }
    
    .amount-display {
        font-size: 2rem;
        padding: 1rem;
    }
    
    .status-icon {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
    }
    
    .app-header {
        padding: 1rem 1rem;
    }
    
    .app-logo {
        font-size: 1.25rem;
    }
    
    .app-main {
        padding: 1rem 0.5rem;
    }
}
