/* ========================================
   SACCO Modern Design System
   A sophisticated, modern design for the SACCO platform
======================================== */

/* CSS Variables */
:root {
    --sacco-primary: #0f766e;
    --sacco-primary-light: #14b8a6;
    --sacco-primary-lighter: #5eead4;
    --sacco-primary-dark: #0d5858;
    --sacco-accent: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
}

/* Base Styles */
body {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Modern Navigation */
.navbar.bg-success {
    background: linear-gradient(135deg, var(--sacco-primary) 0%, var(--sacco-primary-light) 100%) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ffffff, #e6fffa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.025em;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: var(--space-2) var(--space-4) !important;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    transform: translateY(-1px);
}

.text-sacco { color: var(--sacco-primary) !important; }

/* Modern Buttons */
.btn-sacco {
    background: linear-gradient(135deg, var(--sacco-primary) 0%, var(--sacco-primary-light) 100%);
    color: white;
    border: none;
    font-weight: 600;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-sacco:hover {
    background: linear-gradient(135deg, var(--sacco-primary-dark) 0%, var(--sacco-primary) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Modern Cards */
.card-border {
    border-top: 4px solid var(--sacco-primary) !important;
    position: relative;
    overflow: hidden;
}

.card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: var(--space-6);
}

/* Status Badges */
.badge-pending {
    background: linear-gradient(135deg, var(--warning) 0%, #fbbf24 100%);
    color: white;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}
.badge-accepted {
    background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
    color: white;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}
.badge-declined {
    background: linear-gradient(135deg, var(--error) 0%, #f87171 100%);
    color: white;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}
.bg-gradient{
    background: linear-gradient(135deg, var(--sacco-primary) 0%, var(--sacco-primary-light) 100%);
}

/* Landing page */
.hero-landing {
	background: radial-gradient(1200px 600px at 10% -10%, rgba(25,135,84,.45), rgba(25,135,84,0) 60%),
		radial-gradient(800px 400px at 110% 10%, rgba(13,110,253,.2), rgba(13,110,253,0) 60%),
		linear-gradient(120deg, #198754 0%, #2aa26c 100%);
	color: #fff;
}
.section-title { color: #198754; }
.feature-tile {
	border: 1px solid #e9ecef;
	border-radius: 1rem;
	padding: 1rem;
	text-align: center;
	background: #fff;
}
.feature-icon {
	width: 48px; height: 48px; border-radius: 12px;
	background: #198754; color: #fff; display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700;
}
.feature-text { margin-top: .5rem; font-weight: 600; }
/* Balance Cards */
.balance-card {
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.balance-card h6 {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.balance-card h4 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sacco-primary);
    margin: 0;
    line-height: 1;
}

/* Modern Forms */
.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
    font-size: 0.875rem;
}

.form-control {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--sacco-primary-light);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-400);
}

/* Modern Alerts */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-6);
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: var(--error);
    border-left: 4px solid var(--error);
}

/* Modern Tables */
.table-responsive {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    background: white;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.table th {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    font-weight: 700;
    color: var(--gray-900);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: var(--space-4) var(--space-6);
    border-bottom: 2px solid var(--gray-200);
    border-top: none;
}

.table td {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--gray-100);
    border-top: none;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.02) 0%, rgba(15, 118, 110, 0.01) 100%);
}

/* Responsive Table Card View (mobile) */
@media (max-width: 767.98px) {
    /* Exclude DataTables (they have their own responsive) */
    .table-responsive .table:not(.dataTable) thead {
        display: none;
    }
    .table-responsive .table:not(.dataTable) tbody,
    .table-responsive .table:not(.dataTable) tr,
    .table-responsive .table:not(.dataTable) td {
        display: block;
        width: 100%;
    }
    .table-responsive .table:not(.dataTable) tr {
        background: white;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
        margin-bottom: var(--space-4);
        padding: var(--space-4);
    }
    .table-responsive .table:not(.dataTable) td {
        display: grid;
        grid-template-columns: 45% 55%;
        gap: 0.5rem;
        padding: 0.5rem 0;
        border: none;
    }
    .table-responsive .table:not(.dataTable) td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-600);
    }
    .table-responsive .table:not(.dataTable) td:last-child {
        padding-bottom: 0;
    }
}

/* Modern Landing Page Styles */
.hero-section {
    background: linear-gradient(135deg, var(--sacco-primary) 0%, var(--sacco-primary-light) 30%, #1e40af 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85);
}

/* Floating Cards Animation */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.feature-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.feature-card.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.feature-card.card-2 {
    top: 50%;
    right: 20%;
    animation-delay: 1s;
}

.feature-card.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.feature-card .feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

/* Section Styles */
.section-title {
    color: var(--sacco-primary);
    font-weight: 800;
    margin-bottom: var(--space-6);
}

/* Benefit Cards */
.benefit-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--sacco-primary) 0%, var(--sacco-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.benefit-card h4 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

/* Capability Cards */
.capability-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.capability-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.capability-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--sacco-primary) 0%, var(--sacco-primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.75rem;
}

.capability-card h5 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.capability-list {
    list-style: none;
    padding: 0;
}

.capability-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

.capability-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sacco-primary);
    font-weight: bold;
}

/* Automation Section */
.automation-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.automation-step {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--sacco-primary) 0%, var(--sacco-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.automation-content h6 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 300px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--sacco-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
}

/* Security Features */
.security-feature {
    padding: 1.5rem;
}

.security-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--sacco-primary) 0%, var(--sacco-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.security-feature h6 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--sacco-primary) 0%, var(--sacco-primary-light) 100%);
}

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 3rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-card h3, .cta-card p {
    color: white;
}

/* Legacy Landing Page Styles */
.hero-landing {
    background: linear-gradient(135deg, var(--sacco-primary) 0%, var(--sacco-primary-light) 50%, #1e40af 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.feature-tile {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    background: white;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--sacco-primary) 0%, var(--sacco-primary-light) 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-lg);
}

.feature-text {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.advantage-item {
    padding: .5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.advantage-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: .9rem;
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    background: var(--sacco-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: var(--space-4);
    }
    
    .balance-card h4 {
        font-size: 1.5rem;
    }
    
    .feature-tile {
        padding: var(--space-4);
        margin-bottom: var(--space-4);
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* Multi-tenant SACCO specific styles */
.hover-shadow {
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hover-shadow:hover {
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
	transform: translateY(-2px);
}

.sacco-card {
	border: 1px solid #e9ecef;
	border-radius: 0.5rem;
	transition: all 0.3s ease;
}

.sacco-card:hover {
	border-color: var(--sacco-primary);
	box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.sacco-logo {
	width: 60px;
	height: 60px;
	object-fit: contain;
	border-radius: 0.25rem;
}

/* Enhanced card headers */
.card-header.bg-primary {
	background: linear-gradient(135deg, var(--bs-primary, #0d6efd) 0%, #0056b3 100%) !important;
}

.card-header.bg-success {
	background: linear-gradient(135deg, var(--bs-success, #198754) 0%, #157347 100%) !important;
}

.card-header.bg-dark {
	background: linear-gradient(135deg, var(--bs-dark, #212529) 0%, #000 100%) !important;
}

/* ======================================== 
   SIDEBAR LAYOUT STYLES
   ======================================== */

/* Sidebar Styles */
.sidebar {
	position: fixed;
	top: 56px; /* Height of navbar */
	left: -280px; /* Hidden by default */
	width: 280px;
	height: calc(100vh - 56px);
	background: linear-gradient(180deg, var(--sacco-primary) 0%, var(--sacco-primary-dark) 100%);
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1040;
	overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
	width: 6px;
}

.sidebar::-webkit-scrollbar-track {
	background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.3);
	border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.5);
}

/* Sidebar Header */
.sidebar-header {
	padding: 1.5rem 1.25rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 0, 0, 0.1);
}

/* Sidebar Content */
.sidebar-content {
	padding: 1rem 0;
}

/* Sidebar Links */
.sidebar-link {
	display: flex;
	align-items: center;
	padding: 0.75rem 1.25rem;
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s ease;
	border-left: 3px solid transparent;
}

.sidebar-link:hover {
	background: rgba(255, 255, 255, 0.1);
	color: white;
	border-left-color: var(--sacco-accent);
	transform: translateX(2px);
}

.sidebar-link.active {
	background: rgba(255, 255, 255, 0.15);
	color: white;
	border-left-color: var(--sacco-accent);
}

/* Sidebar Sections */
.sidebar-section {
	margin: 0.5rem 0;
}

.sidebar-section-header {
	padding: 0.5rem 1.25rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 0.5rem;
}

.sidebar-sub-link {
	padding-left: 2.5rem;
	font-size: 0.9rem;
}

/* Sidebar States */
.sidebar.show {
	left: 0;
}

/* Sidebar Overlay */
.sidebar-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1035;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.sidebar-overlay.show {
	opacity: 1;
	visibility: visible;
}

/* Main Content Adjustments */
.main-content {
	margin-top: 56px; /* Height of navbar */
	padding: 2rem 0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	min-height: calc(100vh - 56px);
}

/* Desktop Styles */
@media (min-width: 768px) {
	.sidebar {
		left: 0; /* Always visible on desktop */
		position: fixed;
	}
	
	.main-content {
		margin-left: 280px; /* Account for sidebar width */
	}
	
	.sidebar-overlay {
		display: none; /* No overlay needed on desktop */
	}
}

/* Mobile Styles */
@media (max-width: 767.98px) {
	.sidebar {
		left: -280px; /* Hidden by default on mobile */
	}
	
	.main-content {
		margin-left: 0;
	}
	
	.main-content.sidebar-open {
		margin-left: 0; /* Don't push content on mobile */
	}
}

/* Navbar adjustments for sidebar layout */
.navbar {
	z-index: 1050; /* Above sidebar */
}

/* Public Navigation Styles */
.public-navbar {
	position: static !important;
	background: linear-gradient(135deg, var(--sacco-primary) 0%, var(--sacco-primary-light) 100%) !important;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: var(--shadow-lg);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.public-navbar .navbar-brand {
	font-size: 1.75rem;
	font-weight: 800;
	color: white !important;
}

.public-navbar .nav-link {
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9) !important;
	text-decoration: none !important;
	transition: var(--transition);
	padding: 0.5rem 0 !important;
	border-bottom: 2px solid transparent;
}

.public-navbar .nav-link:hover {
	color: white !important;
	border-bottom-color: rgba(255, 255, 255, 0.3);
}

.public-main-content {
	padding: 0;
	margin: 0;
	min-height: calc(100vh - 200px);
}

/* Public Footer */
.public-footer {
	background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
	border-top: 1px solid var(--gray-700);
}

.public-footer .text-white-50 {
	color: rgba(255, 255, 255, 0.6) !important;
}

.public-footer .text-white-50:hover {
	color: rgba(255, 255, 255, 0.8) !important;
	transition: var(--transition);
}

/* Toggle button styles */
#sidebarToggle {
	border: none !important;
	color: rgba(255, 255, 255, 0.9);
	background: transparent;
	padding: 0.5rem;
	border-radius: 0.375rem;
	transition: all 0.2s ease;
}

#sidebarToggle:hover {
	background: rgba(255, 255, 255, 0.1);
	color: white;
}

#sidebarToggle:focus {
	box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Hide toggle button on desktop for logged-in users */
@media (min-width: 768px) {
	#sidebarToggle {
		display: none;
	}
}

/* Multi-tenant navigation context */
.sacco-context {
	background-color: #f8f9fa;
	border-bottom: 1px solid #dee2e6;
	padding: 0.5rem 0;
	font-size: 0.875rem;
}

.sacco-context .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* SACCO Directory Styles */
.sacco-directory-header {
	background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
	border-bottom: 1px solid var(--gray-200);
}

/* SACCO Cards */
.sacco-card {
	background: white;
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
	border: 1px solid var(--gray-200);
	transition: var(--transition);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.sacco-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--sacco-primary-light);
}

.sacco-card-header {
	padding: 2rem 2rem 1rem;
	text-align: center;
	position: relative;
}

.sacco-logo {
	width: 80px;
	height: 80px;
	object-fit: contain;
	border-radius: var(--radius-lg);
	margin-bottom: 1rem;
}

.sacco-avatar {
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, var(--sacco-primary) 0%, var(--sacco-primary-light) 100%);
	color: white;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.sacco-badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: var(--success);
	color: white;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
}

.sacco-card-body {
	padding: 0 2rem;
	text-align: center;
	flex-grow: 1;
}

.sacco-title {
	font-weight: 700;
	color: var(--gray-900);
	margin-bottom: 1rem;
	font-size: 1.25rem;
}

.sacco-description {
	color: var(--gray-600);
	margin-bottom: 1.5rem;
	line-height: 1.5;
}

.sacco-contact {
	background: var(--gray-50);
	border-radius: var(--radius-lg);
	padding: 1rem;
	margin-bottom: 1.5rem;
}

.contact-item {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	color: var(--gray-600);
	margin-bottom: 0.5rem;
}

.contact-item:last-child {
	margin-bottom: 0;
}

.contact-item i {
	color: var(--sacco-primary);
}

.sacco-card-footer {
	padding: 1.5rem 2rem 2rem;
	margin-top: auto;
}

.sacco-actions {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.sacco-actions .btn {
	flex: 1;
	font-size: 0.875rem;
	padding: 0.75rem 1rem;
}

.flex-1 {
	flex: 1;
}

/* Empty State */
.empty-state {
	padding: 3rem 2rem;
}

.empty-icon {
	width: 120px;
	height: 120px;
	background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 2rem;
	font-size: 3rem;
	color: var(--gray-400);
}

.empty-title {
	font-weight: 700;
	color: var(--gray-900);
	margin-bottom: 1rem;
}

.empty-description {
	color: var(--gray-600);
	margin-bottom: 2rem;
	line-height: 1.6;
}

.empty-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
}

/* Benefit Items */
.benefit-item {
	padding: 1.5rem;
}

.benefit-icon-sm {
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, var(--sacco-primary) 0%, var(--sacco-primary-light) 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	color: white;
	font-size: 1.25rem;
}

.benefit-item h6 {
	font-weight: 700;
	color: var(--gray-900);
	margin-bottom: 0.5rem;
}

/* Search styling */
#saccoSearch {
	border: 2px solid var(--gray-200);
	border-radius: var(--radius-lg);
	padding: 0.75rem 1rem;
	transition: var(--transition);
}

#saccoSearch:focus {
	border-color: var(--sacco-primary-light);
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

/* SACCO selection cards (legacy) */
.sacco-selection-card {
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.sacco-selection-card:hover {
	border-color: var(--sacco-primary-light);
	transform: translateY(-4px);
	box-shadow: 0 0.75rem 1.5rem rgba(15, 118, 110, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.sacco-card-header,
	.sacco-card-body,
	.sacco-card-footer {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
	
	.sacco-actions {
		flex-direction: column;
		gap: 0.5rem;
	}
	
	.empty-actions {
		flex-direction: column;
		align-items: center;
	}
	
	.empty-actions .btn {
		width: 100%;
		max-width: 280px;
	}
}

/* SACCO Login Page Styles */
.sacco-login-hero {
	background: linear-gradient(135deg, var(--sacco-primary) 0%, var(--sacco-primary-light) 100%);
	position: relative;
	overflow: hidden;
}

.sacco-login-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
	pointer-events: none;
}

.sacco-avatar-large {
	width: 120px;
	height: 120px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	font-weight: 700;
	color: white;
	margin: 0 auto;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.sacco-avatar-small {
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, var(--sacco-primary) 0%, var(--sacco-primary-light) 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	font-weight: 700;
	color: white;
}

.login-features {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
}

.feature-item {
	display: flex;
	align-items: center;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 500;
}

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

.login-form-container .form-control {
	padding: 0.75rem 1rem;
	border-radius: var(--radius-lg);
	border: 2px solid var(--gray-200);
	font-size: 1rem;
}

.login-form-container .form-control:focus {
	border-color: var(--sacco-primary-light);
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.login-form-container .btn-primary {
	background: linear-gradient(135deg, var(--sacco-primary) 0%, var(--sacco-primary-light) 100%);
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius-lg);
	font-weight: 600;
}

.login-form-container .btn-primary:hover {
	background: linear-gradient(135deg, var(--sacco-primary-dark) 0%, var(--sacco-primary) 100%);
	transform: translateY(-1px);
}

/* Mobile adjustments for login page */
@media (max-width: 991.98px) {
	.login-features {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 1.5rem;
	}
	
	.feature-item {
		font-size: 0.875rem;
	}
}

/* Success Animation Styles */
.success-animation {
	position: relative;
}

.success-checkmark {
	width: 80px;
	height: 80px;
	margin: 0 auto;
}

.checkmark {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	display: block;
	stroke-width: 2;
	stroke: var(--success);
	stroke-miterlimit: 10;
	animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
	position: relative;
	top: 5px;
	right: 5px;
	margin: 0 auto;
}

.checkmark__circle {
	stroke-dasharray: 166;
	stroke-dashoffset: 166;
	stroke-width: 2;
	stroke-miterlimit: 10;
	stroke: var(--success);
	fill: #fff;
	animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
	transform-origin: 50% 50%;
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	stroke-width: 3;
	stroke: var(--success);
	animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
	100% {
		stroke-dashoffset: 0;
	}
}

@keyframes scale {
	0%, 100% {
		transform: none;
	}
	50% {
		transform: scale3d(1.1, 1.1, 1);
	}
}

@keyframes fill {
	100% {
		box-shadow: inset 0px 0px 0px 30px var(--success);
	}
}

.success-features .feature-check {
	display: flex;
	align-items: center;
	margin-bottom: 0.75rem;
	font-weight: 500;
}

.success-features .feature-check i {
	font-size: 1.25rem;
}

/* Admin Login Enhanced Styles */
.admin-security-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(16, 185, 129, 0.1);
	border-radius: var(--radius-lg);
	padding: 0.5rem 1rem;
}

.admin-help-section {
	margin-top: 1.5rem;
}

.admin-help-section .alert {
	border: none;
	background: rgba(13, 110, 253, 0.1);
	border-left: 4px solid #0d6efd;
	font-size: 0.875rem;
}

.admin-links {
	border-top: 1px solid var(--gray-200);
	padding-top: 1rem;
}

/* SACCO Registration Styles */
.sacco-registration-icon {
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 32px rgba(var(--primary), 0.3);
}

.sacco-registration-icon i {
	font-size: 2.5rem;
	color: white;
}

/* Enhanced Registration Form */
.registration-card .card {
	transition: all 0.3s ease;
}

.registration-card .card:hover {
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.registration-card .form-control:focus,
.registration-card .form-select:focus {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(var(--primary), 0.15);
}

.registration-card .btn-primary {
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	border: none;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	transition: all 0.3s ease;
}

.registration-card .btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(var(--primary), 0.3);
}

/* Mobile adjustments for success features */
@media (max-width: 768px) {
	.success-features {
		text-align: center;
	}
	
	.success-features .row {
		justify-content: center;
	}
	
	.admin-help-section {
		margin-top: 1rem;
	}
	
	.checkmark {
		width: 60px;
		height: 60px;
	}
	
	.success-checkmark {
		width: 60px;
		height: 60px;
	}
	
	.sacco-registration-icon {
		width: 60px;
		height: 60px;
	}
	
	.sacco-registration-icon i {
		font-size: 2rem;
	}
}