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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.currency-selector {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.currency-selector label {
    font-size: 0.95rem;
    font-weight: 600;
}

.currency-selector select {
    background: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    color: #667eea;
}

.currency-selector select:focus {
    outline: 2px solid white;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    align-items: end;
}

.form-group {
    margin-bottom: 20px;
}

.form-group-half {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.label-with-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.toggle-switch {
    display: flex;
    gap: 5px;
    background: #f0f0f0;
    padding: 3px;
    border-radius: 6px;
}

.toggle-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
    font-weight: 500;
}

.toggle-btn.active {
    background: #667eea;
    color: white;
}

.toggle-btn:hover:not(.active) {
    background: #e0e0e0;
}

.results {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.countdown-display {
    text-align: center;
    margin: 30px 0;
}

.countdown-number {
    font-size: 4rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.countdown-label {
    font-size: 1.2rem;
    color: #555;
    margin-top: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.status-indicator {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
}

.status-indicator.good {
    background: #d4edda;
    color: #155724;
}

.status-indicator.caution {
    background: #fff3cd;
    color: #856404;
}

.status-indicator.warning {
    background: #f8d7da;
    color: #721c24;
}

.status-indicator span {
    margin-right: 8px;
}

.info-text {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.asset-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    margin-bottom: 20px;
}

.asset-input-group select,
.asset-input-group input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.asset-input-group select:focus,
.asset-input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #5568d3;
}

.assets-list {
    margin: 20px 0;
}

.asset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.asset-info {
    flex: 1;
}

.asset-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.asset-details {
    font-size: 0.9rem;
    color: #666;
}

.asset-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
    margin-right: 15px;
}

.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-remove:hover {
    background: #c82333;
}

.asset-total {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
}

.total-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.total-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.total-combined {
    font-size: 1.5rem;
    font-weight: 700;
}

.loading {
    text-align: center;
    padding: 10px;
    color: #666;
    font-style: italic;
}

footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    opacity: 0.8;
}

footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.8rem !important;
    opacity: 0.7 !important;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .asset-input-group {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .asset-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .asset-value {
        margin-right: 0;
    }
}
