* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen {
    display: none;
    width: 100%;
    max-width: 800px;
    margin: 20px;
}

.screen.active {
    display: block;
}

.atm-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px;
    text-align: center;
}

.atm-header {
    margin-bottom: 40px;
}

.logo {
    font-size: 4rem;
    margin-bottom: 20px;
}

.atm-header h1 {
    font-size: 2.5rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.login-form, .signup-form {
    max-width: 400px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #667eea;
}

.input-group .btn.small {
    margin-left: 10px;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.btn.primary {
    background: #333;
    color: white;
}

.btn.primary:hover {
    background: #555;
}

.btn.secondary {
    background: #6c757d;
    color: white;
}

.btn.secondary:hover {
    background: #5a6268;
}

.btn.tertiary {
    background: #667eea;
    color: white;
    width: 100%;
}

.btn.tertiary:hover {
    background: #5a67d8;
}

/* ATM Machine Style for Transactions */
.atm-machine {
    background: #2c3e50;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.atm-screen {
    background: #34495e;
    border-radius: 15px;
    padding: 30px;
    color: white;
}

.screen-header {
    text-align: center;
    margin-bottom: 30px;
}

.screen-header h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.balance-display {
    background: #27ae60;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
}

.transaction-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-transaction {
    padding: 15px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-transaction:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-transaction.exit {
    grid-column: 2;
    background: #e74c3c;
}

.btn-transaction.exit:hover {
    background: #c0392b;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.modal-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

/* Statement Styles */
.statement-header {
    text-align: left;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.statement-transactions {
    text-align: left;
}

.statement-transactions h4 {
    margin-bottom: 15px;
    color: #333;
}

.transaction-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-type {
    font-weight: bold;
}

.transaction-amount {
    font-family: monospace;
}

.transaction-amount.credit {
    color: #27ae60;
}

.transaction-amount.debit {
    color: #e74c3c;
}

/* Fast Cash Grid */
.fast-cash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.fast-cash-btn {
    padding: 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.fast-cash-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .atm-container {
        padding: 20px;
        margin: 10px;
    }
    
    .atm-header h1 {
        font-size: 2rem;
    }
    
    .transaction-buttons {
        grid-template-columns: 1fr;
    }
    
    .btn-transaction.exit {
        grid-column: 1;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 20px;
        margin: 10px;
    }
}

/* Success/Error Messages */
.message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
