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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
    border-radius: 5px;
}

header h1 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

nav {
    font-size: 0.9em;
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 10px;
}

nav a:hover {
    color: #3498db;
}

main {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn.secondary {
    background-color: #95a5a6;
}

.btn.secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    font-size: 0.9em;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    max-width: 400px;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.form-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.form-section h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Tables */
.data-table,
.transaction-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.data-table th,
.data-table td,
.transaction-table th,
.transaction-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th,
.transaction-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.data-table tr:hover,
.transaction-table tr:hover {
    background-color: #f5f5f5;
}

/* Dashboard */
.dashboard-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-card h3 {
    color: #7f8c8d;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
}

/* Account info */
.account-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.balance {
    font-weight: bold;
    color: #27ae60;
}

.balance-large {
    font-size: 2.5em;
    font-weight: bold;
    color: #27ae60;
    text-align: center;
    margin: 20px 0;
}

/* Transaction styling */
.type-deposit {
    color: #27ae60;
    font-weight: bold;
}

.type-withdrawal {
    color: #e74c3c;
    font-weight: bold;
}

.amount-deposit {
    color: #27ae60;
}

.amount-withdrawal {
    color: #e74c3c;
}

/* Actions */
.actions {
    margin: 20px 0;
    padding: 15px;
    background-color: #f0f8ff;
    border-radius: 5px;
}

/* Login */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.login-hint {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.pin-check-link {
    margin-top: 15px;
}

.pin-check-link a {
    color: #3498db;
    text-decoration: none;
}

.pin-check-link a:hover {
    text-decoration: underline;
}

/* PIN Check */
.pin-check-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.pin-check-container h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.balance-display {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

/* Error and success messages */
.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #e74c3c;
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #27ae60;
}

/* Danger zone */
.danger-zone {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8d7da;
    border-radius: 5px;
    border-left: 4px solid #e74c3c;
}

.danger-zone h4 {
    color: #721c24;
}

/* Disabled */
.disabled {
    color: #95a5a6;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-stats {
        flex-direction: column;
    }
    
    .container {
        padding: 10px;
    }
    
    nav {
        display: block;
        margin-top: 10px;
    }
    
    nav a {
        display: block;
        margin: 5px 0;
    }
}
