/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    color: #2c3e50;
}

/* Screen container */
.screen {
    display: none;
    width: 100%;
    max-width: 420px;
}

.screen.active {
    display: block;
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main container card */
.container {
    background: white;
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e9ecef;
}

/* Header styling */
.atm-header {
    margin-bottom: 30px;
}

.atm-header h1 {
    color: #34495e;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.atm-header h2 {
    color: #34495e;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.atm-header p {
    color: #7f8c8d;
    font-size: 15px;
    font-weight: 300;
}

/* Form styling */
.login-form,
.transaction-form {
    margin-bottom: 25px;
}

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

.input-group label {
    display: block;
    margin-bottom: 6px;
    color: #2c3e50;
    font-weight: 400;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: #fafbfc;
    color: #2c3e50;
}

.input-group input:focus {
    outline: none;
    border-color: #74b9ff;
    background: white;
    box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.1);
}

.input-group input:hover {
    border-color: #ddd;
}

/* Button styling */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    margin: 6px;
    min-width: 110px;
    letter-spacing: 0.3px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

/* Menu grid layout */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.menu-btn {
    padding: 18px 15px;
    background-color: #28a745;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 400;
    color: white;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    background-color: #218838;
}

.menu-btn:active {
    transform: translateY(0);
}

.menu-btn.exit-btn {
    background-color: #dc3545;
    color: white;
    grid-column: span 2;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.menu-btn.exit-btn:hover {
    background-color: #c82333;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Footer information */
.footer-info {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.footer-info p {
    color: #7f8c8d;
    font-size: 13px;
    font-weight: 300;
}

/* Responsive design for mobile */
@media (max-width: 480px) {
    .container {
        padding: 25px 20px;
        margin: 10px;
        border-radius: 15px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .menu-btn.exit-btn {
        grid-column: span 1;
    }
    
    .atm-header h1 {
        font-size: 22px;
    }
    
    .atm-header h2 {
        font-size: 20px;
    }
    
    .btn {
        min-width: 100px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 20px 15px;
    }
    
    .atm-header h1 {
        font-size: 20px;
    }
    
    .atm-header h2 {
        font-size: 18px;
    }
}

/* Additional hover effects for better user experience */
.input-group input:valid {
    border-color: #00b894;
}

.menu-btn,
.btn {
    user-select: none;
}

/* Subtle loading animation for screen transitions */
.screen {
    position: relative;
}

.screen.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}