:root {
    --orange: #fd7e14;
    --blue: #0d6efd;
    --dark-bg: #121212;
    --button-bg: #2d2d2d;
}

body {
    font-family: 'Roboto Mono', monospace;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--dark-bg);
    color: #e0e0e0;
}

.calculator-title {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    color: var(--orange);
    text-shadow: 0 0 8px rgba(253, 126, 20, 0.3);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-family: 'Roboto Mono', monospace;
    font-weight: 300;
    letter-spacing: 2px;
    color: #9e9e9e;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

#display {
    font-size: 3.5rem;
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: right;
    border: 1px solid #333;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    min-height: 100px;
    overflow-x: auto;
    font-weight: 300;
}

.btn-calc {
    font-size: 1.5rem;
    padding: 15px 0;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: none;
    font-weight: 400;
}

.btn-number {
    background-color: var(--button-bg);
    color: #ffffff;
}

.btn-number:hover {
    background-color: #3d3d3d !important;
    transform: translateY(-2px);
}

.btn-operator {
    background-color: var(--orange);
    color: #000;
}

.btn-operator:hover {
    background-color: #ff8c00 !important;
    color: #000 !important;
    transform: translateY(-2px);
}

.btn-special {
    background-color: #252525;
    color: var(--orange);
}

.btn-special:hover {
    background-color: #353535 !important;
}

.btn-reset {
    background-color: rgba(13, 110, 253, 0.2);
    color: var(--blue);
    border: 1px solid var(--blue);
}

.btn-reset:hover {
    background-color: var(--blue) !important;
    color: white !important;
}

.btn-equals {
    background-color: var(--blue);
    color: white;
    height: 100%;
}

.btn-equals:hover {
    background-color: #0b5ed7 !important;
    transform: translateY(-2px);
}

.container {
    max-width: 400px;
}

.btn:active {
    transform: scale(0.95) !important;
}

/* Scrollbar personalizada para el display */
#display::-webkit-scrollbar {
    height: 5px;
}

#display::-webkit-scrollbar-thumb {
    background-color: var(--orange);
    border-radius: 10px;
}

.btn-zero {
    grid-column: span 2;
}

@media (max-width: 576px) {
    #display {
        font-size: 2.5rem;
        min-height: 80px;
        padding: 15px;
    }
    
    .btn-calc {
        font-size: 1.3rem;
        padding: 12px 0;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
}