.calculator-container {
    height: calc(100% - 40px);
    background: #f0f0f0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calculator-display {
    background: #000;
    border-radius: 6px;
    padding: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.calculator-screen {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    text-align: right;
    min-height: 30px;
    line-height: 30px;
    word-break: break-all;
    overflow-wrap: break-word;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 8px;
    flex: 1;
}

.calc-btn {
    background: #e0e0e0;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-height: 45px;
    max-height: 45px;
}

.calc-btn:hover {
    background: #d0d0d0;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.calc-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.number-btn {
    background: #ffffff;
    color: #333;
}

.number-btn:hover {
    background: #f0f0f0;
}

.operator-btn {
    background: #ff9500;
    color: white;
}

.operator-btn:hover {
    background: #e6850e;
}

.add-btn {
    grid-row: 4;
    grid-column: 4;
}

.equals-btn {
    background: #ff9500;
    color: white;
    grid-row: 5;
    grid-column: 4;
}

.equals-btn:hover {
    background: #e6850e;
}

.clear-btn {
    background: #ff3333;
    color: white;
}

.clear-btn:hover {
    background: #e62e2e;
}

.zero-btn {
    grid-column: 1 / 3;
    grid-row: 5;
}

/* Dark theme styles */
.theme-dark .calculator-container {
    background: #2d2d2d;
}

.theme-dark .calculator-display {
    background: #1a1a1a;
    border: 1px solid #444;
}

.theme-dark .calculator-screen {
    color: #00ff88;
}

.theme-dark .calc-btn {
    background: #4a4a4a;
    color: #e0e0e0;
    border: 1px solid #666;
}

.theme-dark .calc-btn:hover {
    background: #555;
}

.theme-dark .number-btn {
    background: #3a3a3a;
    color: #e0e0e0;
}

.theme-dark .number-btn:hover {
    background: #444;
}

.theme-dark .operator-btn {
    background: #ff6600;
    color: white;
}

.theme-dark .operator-btn:hover {
    background: #e65500;
}

.theme-dark .equals-btn {
    background: #ff6600;
    color: white;
}

.theme-dark .equals-btn:hover {
    background: #e65500;
}

.theme-dark .clear-btn {
    background: #ff4444;
    color: white;
}

.theme-dark .clear-btn:hover {
    background: #ff3333;
}

/* Light theme styles */
.theme-light .calculator-container {
    background: #f8f9fa;
}

.theme-light .calculator-display {
    background: #000;
    border: 1px solid #ccc;
}

.theme-light .calculator-screen {
    color: #00ff00;
}

.theme-light .calc-btn {
    background: #e9ecef;
    color: #333;
    border: 1px solid #dee2e6;
}

.theme-light .calc-btn:hover {
    background: #dee2e6;
}

.theme-light .number-btn {
    background: #ffffff;
    color: #333;
}

.theme-light .number-btn:hover {
    background: #f8f9fa;
}

.theme-light .operator-btn {
    background: #007bff;
    color: white;
}

.theme-light .operator-btn:hover {
    background: #0056b3;
}

.theme-light .equals-btn {
    background: #007bff;
    color: white;
}

.theme-light .equals-btn:hover {
    background: #0056b3;
}

.theme-light .clear-btn {
    background: #dc3545;
    color: white;
}

.theme-light .clear-btn:hover {
    background: #c82333;
}