:root {
    --primary-color: #2e71f0;
    /* SWS Blue */
    --secondary-color: #00d2ff;
    --bg-dark: #0b1015;
    /* Deep Navy Background */
    --bg-card: #151c24;
    /* Card Background */
    --text-primary: #ffffff;
    --text-secondary: #99a1b3;
    --accent: #00d08a;
    /* SWS Green */
    --danger: #ff4d4d;
    --glass-bg: rgba(21, 28, 36, 0.95);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    background-image: none;
    min-height: 100vh;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span {
    font-weight: 300;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

/* Cards */
.card {
    background: var(--bg-card);
    /* Ensure solid background for cards */
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
    /* Force text color */
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
}

.rate-display {
    text-align: center;
    padding: 40px;
}

.rate-display h2 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.big-rate {
    font-size: 5rem;
    font-weight: 700;
    color: #ffffff;
    /* Brighter white for maximum contrast */
    text-shadow: 0 0 15px rgba(46, 113, 240, 0.6);
    /* Glow effect with primary color */
    line-height: 1;
}

.big-rate span {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.trend-indicator {
    margin-top: 10px;
    font-size: 1rem;
    color: #10b981;
}

/* Calculator */
.calculator {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-group {
    display: flex;
    align-items: center;
    background: #1b252f;
    border-radius: 10px;
    padding: 5px 15px;
    border: 1px solid var(--glass-border);
}

.input-group input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    width: 100%;
    outline: none;
}

.input-group span {
    color: var(--primary-color);
    font-weight: 700;
}

/* Chart Controls */
.chart-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-chart {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-chart:hover,
.btn-chart.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Table */
.rates-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.rates-table th {
    text-align: left;
    color: var(--text-secondary);
    padding: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.rates-table td {
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.provider-name {
    font-weight: 600;
    color: var(--text-primary);
}

.provider-type {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}