* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.login-box, .admin-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.admin-box {
    max-width: 600px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

h2 {
    color: #333;
    margin: 30px 0 20px;
    font-size: 20px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
}

button {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

button:hover {
    background: #5568d3;
}

#captchaText {
    font-weight: bold;
    color: #667eea;
    font-size: 18px;
    letter-spacing: 3px;
}

.admin-info {
    background: #f0f0f0;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #333;
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.save-btn {
    background: #2ecc71;
    flex: 2;
}

.save-btn:hover {
    background: #27ae60;
}

.logout-btn-admin {
    background: #ff4757;
    flex: 1;
}

.logout-btn-admin:hover {
    background: #ee5a6f;
}

/* Dashboard Styles */
.dashboard-body {
    background: #f5f7fa;
    display: block;
    min-height: 100vh;
}

.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-email {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.logo {
    color: #667eea;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.logout-btn {
    width: auto;
    padding: 10px 24px;
    background: #ff4757;
    margin: 0;
}

.logout-btn:hover {
    background: #ee5a6f;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

.welcome-section {
    margin-bottom: 40px;
}

.welcome-section h1 {
    color: #2c3e50;
    font-size: 36px;
    margin-bottom: 10px;
    text-align: left;
}

.subtitle {
    color: #7f8c8d;
    font-size: 18px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.main-card {
    grid-column: span 2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: inherit;
    margin: 0;
}

.main-card .card-header h3 {
    color: rgba(255, 255, 255, 0.9);
}

.card-header svg {
    opacity: 0.8;
}

.card-body {
    margin-top: 20px;
}

.amount-large {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 5px;
}

.amount-label {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #2ecc71;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.status-text {
    color: #7f8c8d;
    font-size: 14px;
}

.info-text {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.info-section {
    margin-top: 30px;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    width: auto;
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0;
}

.action-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 20px;
    }
    
    .nav-content {
        padding: 15px 20px;
    }
    
    .nav-right {
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
    }
    
    .user-email {
        font-size: 12px;
    }
    
    .welcome-section h1 {
        font-size: 28px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .main-card {
        grid-column: span 1;
    }
    
    .amount-large {
        font-size: 36px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .admin-actions {
        flex-direction: column;
    }
}
