/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sports-green: #25EEA4;
    --sports-green-hover: #20cc8c;
    --sports-gray: #F4F5F7;
    --sports-light-green: rgba(37, 238, 164, 0.05);
    
    /* Light theme colors */
    --bg-color: #F4F5F7;
    --calculator-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #6B7683;
    --input-bg: #F4F5F7;
    --input-hover-bg: #E5E9F2;
    --input-focus-bg: #ffffff;
    --border-color: #E5E9F2;
    --result-bg: rgba(37, 238, 164, 0.05);
    --result-hover-bg: rgba(37, 238, 164, 0.08);
    --shadow-color: rgba(37, 238, 164, 0.1);
}

/* Dark theme colors */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --calculator-bg: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #b0b0b0;
        --input-bg: #3a3a3a;
        --input-hover-bg: #4a4a4a;
        --input-focus-bg: #2d2d2d;
        --border-color: #4a4a4a;
        --result-bg: rgba(37, 238, 164, 0.15);
        --result-hover-bg: rgba(37, 238, 164, 0.2);
        --shadow-color: rgba(0, 0, 0, 0.3);
    }
}

/* Manual dark theme class */
.dark-theme {
    --bg-color: #1a1a1a !important;
    --calculator-bg: #2d2d2d !important;
    --text-primary: #ffffff !important;
    --text-secondary: #b0b0b0 !important;
    --input-bg: #3a3a3a !important;
    --input-hover-bg: #4a4a4a !important;
    --input-focus-bg: #2d2d2d !important;
    --border-color: #4a4a4a !important;
    --result-bg: rgba(37, 238, 164, 0.15) !important;
    --result-hover-bg: rgba(37, 238, 164, 0.2) !important;
    --shadow-color: rgba(0, 0, 0, 0.3) !important;
}

body {
    font-family: 'TT Neoris', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
    color: var(--text-primary);
    background: transparent;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Calculator container styles */
.calculator {
    background: var(--calculator-bg);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px var(--shadow-color);
    border: 2px solid var(--sports-green);
    position: relative;
    overflow: hidden;
    margin: 0;
    width: 100%;
}

.calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--sports-light-green) 0%, transparent 50%);
    pointer-events: none;
}

.calculator.active {
    display: block;
}

h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    text-align: left;
    margin-left: 0.125rem;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

/* Form layout */
.calculator-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.input-wrapper:hover {
    background: var(--input-hover-bg);
}

input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: 'TT Neoris', sans-serif;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    background: transparent;
    outline: none;
    -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input:hover {
    background: transparent;
}

input:focus {
    background: var(--input-focus-bg);
}

.input-wrapper:focus-within {
    border-color: var(--sports-green);
    box-shadow: 0 0 0 4px rgba(37, 238, 164, 0.1);
}

input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.input-wrapper .currency {
    position: absolute;
    right: 1.25rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    pointer-events: none;
}

/* Results styles */
.results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--result-bg);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.result-item:hover {
    background: var(--result-hover-bg);
}

.result-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.result-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.result-value .currency {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Profit/Loss colors */
.profit {
    color: var(--text-primary) !important;
}

.loss {
    color: #FF3B30 !important;
}

/* Button styles */
.bet-button-wrapper {
    grid-column: 1 / -1;
    margin-top: 0.0625rem;
    padding-top: 0.0625rem;
    border-top: 1px solid var(--border-color);
}

.bet-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.625rem;
    background: #00A876;
    border: none;
    border-radius: 6px;
    color: white;
    font-family: 'TT Neoris', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.bet-button:hover {
    background: #25EEA4;
    transform: translateY(-1px);
    color: white;
}

.bet-button:active {
    transform: translateY(0);
}

.bet-button img {
    margin-left: 0.5rem;
    width: 20px;
    height: 20px;
}

/* Responsive styles */
@media (max-width: 480px) {
    .container {
        padding: 0;
    }
    
    .calculator {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .calculator-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .input-section {
        gap: 0.75rem;
        width: 100%;
        max-width: 400px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .results {
        padding-left: 0;
        padding-top: 1rem;
        border-left: none;
        border-top: 2px solid var(--border-color);
        width: 100%;
        max-width: 400px;
        align-self: center;
    }
    
    h1 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        margin-left: 0;
        text-align: center;
        width: 100%;
    }
    
    .bet-button-wrapper {
        margin-top: 0.0625rem;
        padding-top: 0.0625rem;
        width: 100%;
        max-width: 400px;
        display: flex;
        justify-content: center;
    }
    
    .bet-button {
        padding: 0.625rem;
    }
    
    .input-group {
        width: 100%;
        align-items: center;
    }
    
    .input-wrapper {
        width: 100%;
        max-width: 300px;
    }
} 