.calculator-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
}

.calculator {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding: 1rem;
    width: 320px;
}

.display {
    background-color: white;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: right;
    min-height: 80px;
}

.previous-operand {
    color: #6c757d;
    font-size: 1rem;
    min-height: 1.2rem;
}

.current-operand {
    color: #212529;
    font-size: 2rem;
    font-weight: bold;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.buttons button {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 1rem;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.buttons button:hover {
    background-color: #e9ecef;
}

.buttons button:active {
    background-color: #dee2e6;
}

.btn-clear, .btn-delete {
    background-color: #ffc107 !important;
    color: white;
}

.btn-equals {
    background-color: #0d6efd !important;
    color: white;
    grid-column: span 2;
}

[data-action="operator"] {
    background-color: #f8f9fa;
    color: #0d6efd;
    font-weight: bold;
}

.unit-converter {
    background-color: white;
    border-radius: 5px;
    padding: 1rem;
}

.unit-converter .input-group {
    margin-bottom: 1rem;
}

.unit-converter .bi-arrow-down-up {
    font-size: 1.5rem;
    color: #0d6efd;
    cursor: pointer;
}

.unit-converter .bi-arrow-down-up:hover {
    color: #0b5ed7;
}

.currency-converter {
    background-color: white;
    border-radius: 5px;
    padding: 1rem;
}

.currency-converter .input-group {
    margin-bottom: 1rem;
}

.currency-converter .bi-arrow-down-up {
    font-size: 1.5rem;
    color: #0d6efd;
    cursor: pointer;
}

.currency-converter .bi-arrow-down-up:hover {
    color: #0b5ed7;
}

#lastUpdate {
    font-size: 0.8rem;
}

#refreshRate {
    transition: all 0.3s ease;
}

#refreshRate:disabled {
    cursor: not-allowed;
}

#refreshRate i {
    margin-right: 0.5rem;
}

.refreshing i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .calculator-container {
        padding: 1rem;
    }

    .calculator {
        width: 100%;
        margin-bottom: 1rem;
    }
} 