/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

/* ATM Container */
.atm-container {
    background: rgba(1, 15, 6);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 100%;
}

/* Header Styles */
.atm-header {
    text-align: center;
    margin-bottom: 2rem;
}

.atm-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: 0.5rem;
}

.atm-subtitle {
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* Screen Styles */
.screen {
    background: #0a0a0a;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid #4ecdc4;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.screen-content {
    text-align: center;
}

.balance {
    font-size: 2rem;
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: 1rem;
}

.account-info {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Input Display */
.input-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: right;
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    color: #4ecdc4;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Keypad Styles */
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.key {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Mono', monospace;
}

.key:hover {
    background: #4ecdc4;
    color: #0a0a0a;
    transform: translateY(-2px);
}

.key.function {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.key.function:hover {
    background: #ff6b6b;
    color: #ffffff;
}

.key.enter {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
}

.key.enter:hover {
    background: #4ecdc4;
    color: #0a0a0a;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.action-btn {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    border: none;
    color: #ffffff;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(78, 205, 196, 0.3);
}

.action-btn.danger {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
}

.action-btn.danger:hover {
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

/* Transaction History */
.transaction-history {
    margin-top: 1rem;
    max-height: 150px;
    overflow-y: auto;
}

.transaction {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
}

.transaction.deposit {
    border-left: 3px solid #4ecdc4;
}

.transaction.withdraw {
    border-left: 3px solid #ff6b6b;
}

/* Utility Classes */
.hidden {
    display: none;
}

.message {
    color: #4ecdc4;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.error {
    color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 480px) {
    .atm-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .key {
        padding: 0.8rem;
        font-size: 1rem;
    }
}
