:root {
    --primary-color: #e50914;
    --secondary-color: #b20710;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-bg: #141414;
    --card-bg: #1c1c1c;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --input-bg: #2c2c2c;
    --input-border: #444;
    --highlight: #ff0a16;
}

/* Theme: Light Mode */
body.light-theme {
    --dark-bg: #f5f5f5;
    --card-bg: #ffffff;
    --text-primary: #111;
    --text-secondary: #444;
    --input-bg: #e0e0e0;
    --input-border: #ccc;
    --primary-color: #e50914;
}

/* Theme: High Contrast */
body.high-contrast {
    filter: contrast(1.5);
}

/* Basic Setup */
body {
    background: linear-gradient(135deg, var(--dark-bg), #000000);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    color: var(--text-primary);
}

/* Calculator Container */
.calculator-container {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
}

/* Header */
.calculator-header {
    background-color: var(--primary-color);
    color: white;
    padding: 24px;
    text-align: center;
}
.calculator-header h2 {
    font-weight: 700;
    margin: 0;
}

/* Body */
.calculator-body {
    padding: 32px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}
label {
    color: var(--text-secondary);
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

/* Inputs */
.form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    transition: all 0.3s ease;
}
.form-control:focus {
    background-color: #1f1f1f;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
    color: var(--text-primary);
}
.form-control::placeholder {
    color: var(--text-secondary);
}

/* Icon Inputs */
.icon-input {
    position: relative;
}
.icon-input i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}
.icon-input input {
    padding-left: 48px;
}

/* Button */
.btn-calculate {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    width: 100%;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}
.btn-calculate:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.3);
}

/* Discord and Clear Buttons */
.btn-primary, .btn-outline-light {
    font-weight: 600;
    margin-top: 10px;
}

/* Result */
.result-card {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-align: center;
}
.result-success {
    color: var(--success-color);
}
.result-error {
    color: var(--danger-color);
}

/* History */
.list-group-item {
    background-color: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(75, 85, 99, 0.3);
    color: var(--text-primary);
}
.list-group-item small {
    color: var(--text-secondary);
}
.list-group-item .badge {
    font-size: 0.8rem;
}

/* Switches & Toggles */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.form-check-label {
    color: var(--text-secondary);
}

/* Utility */
.d-none {
    display: none !important;
}
.text-white {
    color: var(--text-primary) !important;
}
.text-light {
    color: var(--text-secondary) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.fade-in {
    animation: fadeIn 0.5s ease-out;
}
