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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

/* Central Bank of Kenya Header Styling */
.cbk-header {
    background: linear-gradient(135deg, #006747 0%, #004d35 100%);
    color: white;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cbk-logo-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 20px 40px;
    gap: 25px;
}

.cbk-emblem {
    width: 80px;
    height: 80px;
    background: white;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cbk-header-text h1 {
    font-size: 1.8em;
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.cbk-subtitle {
    margin: 5px 0 0 0;
    font-size: 0.95em;
    opacity: 0.95;
    font-weight: 300;
}

/* CBK Landing Page */
.cbk-landing {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
    padding: 40px 20px;
}

.cbk-welcome-box {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cbk-welcome-box h2 {
    color: #006747;
    font-size: 2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.cbk-tagline {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 40px;
}

.cbk-login-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cbk-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 40px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cbk-btn-primary {
    background: linear-gradient(135deg, #006747 0%, #004d35 100%);
    color: white;
}

.cbk-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 103, 71, 0.3);
}

.cbk-btn-secondary {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
}

.cbk-btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

.cbk-btn .btn-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.cbk-btn .btn-text {
    font-size: 1.1em;
    font-weight: 600;
}

.cbk-info-bar {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
    flex-wrap: wrap;
}

.info-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.info-item strong {
    color: #006747;
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

.landing-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.logo-section img.main-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.logo-section h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}

.btn-primary {
    background-color: #007bff;
}

.btn-success {
    background-color: #28a745;
}

.btn-info {
    background-color: #17a2b8;
}

.btn-warning {
    background-color: #ffc107;
    color: #333;
}

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

.btn-large {
    padding: 15px 50px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.admin-link {
    margin-top: 20px;
}

.admin-link a {
    color: white;
    text-decoration: underline;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.login-box h2 {
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

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

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

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

.admin-container {
    display: flex;
    min-height: calc(100vh - 140px);
}

.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 20px;
}

.sidebar h3 {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #34495e;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: #34495e;
}

.main-content {
    flex: 1;
    padding: 30px;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
}

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

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #333;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.client-dashboard {
    display: flex;
    min-height: calc(100vh - 140px);
}

.client-nav {
    width: 250px;
    background: #1a1a2e;
    color: white;
    padding: 20px;
}

.client-nav h2 {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #16213e;
    font-size: 1.2em;
}

.client-nav ul {
    list-style: none;
}

.client-nav ul li {
    margin-bottom: 10px;
}

.client-nav ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.client-nav ul li a:hover,
.client-nav ul li a.active {
    background-color: #0f3460;
}

.dashboard-content {
    flex: 1;
    padding: 30px;
    background: #f8f9fa;
}

.balance-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.balance-card,
.status-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.balance-amount {
    font-size: 2.5em;
    color: #28a745;
    font-weight: bold;
    margin-top: 10px;
}

.status-message {
    font-size: 1.5em;
    color: #007bff;
    margin: 10px 0;
}

.profile-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.profile-card {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.banks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.bank-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.bank-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.bank-card.bank-enabled {
    border-color: #28a745;
}

.bank-card.bank-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bank-logo {
    max-width: 100px;
    max-height: 60px;
    margin-bottom: 10px;
}

.payment-methods {
    margin-top: 30px;
}

.payment-option {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.payment-amount {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
}

.amount-display {
    font-size: 2em;
    color: #007bff;
    font-weight: bold;
}

.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.section {
    margin-top: 40px;
}

@media (max-width: 768px) {
    .admin-container,
    .client-dashboard {
        flex-direction: column;
    }

    .sidebar,
    .client-nav {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
