:root {
    --safeboda-green: #00A651;
    --safeboda-green-dark: #008542;
    --safeboda-green-light: #e8f5e9;
    --safeboda-orange: #F7941D;
    --safeboda-dark: #1a1a2e;
    --safeboda-gray: #6c757d;
    --safeboda-light: #f8f9fa;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

h1:focus {
    outline: none;
}

/* SafeBoda Brand Buttons */
.btn-safeboda {
    background: linear-gradient(135deg, var(--safeboda-green) 0%, var(--safeboda-green-dark) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}

.btn-safeboda:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.4);
    color: white;
}

.btn-safeboda-outline {
    background: transparent;
    border: 2px solid var(--safeboda-green);
    color: var(--safeboda-green);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-safeboda-outline:hover {
    background: var(--safeboda-green);
    color: white;
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border-left: 4px solid var(--safeboda-green);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .stat-icon.green {
    background: var(--safeboda-green-light);
    color: var(--safeboda-green);
}

.stat-card .stat-icon.orange {
    background: #fff3e0;
    color: var(--safeboda-orange);
}

.stat-card .stat-icon.blue {
    background: #e3f2fd;
    color: #1976d2;
}

.stat-card .stat-icon.purple {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Navbar */
.navbar-safeboda {
    background: linear-gradient(135deg, var(--safeboda-dark) 0%, #16213e 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-brand .brand-icon {
    background: var(--safeboda-green);
    padding: 0.5rem;
    border-radius: 10px;
    margin-right: 0.75rem;
}

/* Sidebar */
.sidebar {
    background: white;
    min-height: calc(100vh - 70px);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
}

.sidebar .nav-link {
    color: var(--safeboda-gray);
    padding: 0.875rem 1.5rem;
    margin: 0.25rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background: var(--safeboda-green-light);
    color: var(--safeboda-green);
}

.sidebar .nav-link.active {
    background: var(--safeboda-green);
    color: white;
}

.sidebar .nav-link i {
    margin-right: 0.75rem;
    width: 20px;
}

/* Tables */
.table-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

.table-modern thead {
    background: var(--safeboda-light);
}

.table-modern th {
    font-weight: 600;
    color: var(--safeboda-dark);
    border: none;
    padding: 1rem;
}

.table-modern td {
    padding: 1rem;
    vertical-align: middle;
    border-color: #f0f0f0;
}

.table-modern tbody tr:hover {
    background: #fafafa;
}

/* Landing Page */
.hero-section {
    background: linear-gradient(135deg, var(--safeboda-dark) 0%, #16213e 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 166, 81, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--safeboda-green);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--safeboda-green) 0%, var(--safeboda-green-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
}

.login-left {
    background: linear-gradient(135deg, var(--safeboda-dark) 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 100%;
    height: 160%;
    background: radial-gradient(circle, rgba(0, 166, 81, 0.15) 0%, transparent 60%);
}

.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.login-form {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: var(--safeboda-green);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.login-form .form-label {
    font-weight: 500;
    color: var(--safeboda-dark);
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert-safeboda {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.alert-danger {
    background: #ffebee;
    color: #c62828;
}

.alert-success {
    background: var(--safeboda-green-light);
    color: var(--safeboda-green-dark);
}

/* Loading */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--safeboda-dark) 0%, #16213e 100%);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--safeboda-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    margin-top: 1rem;
    font-weight: 500;
}

/* Error UI */
#blazor-error-ui {
    background: #ffebee;
    color: #c62828;
    bottom: 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 1rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-radius: 0;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.blazor-error-boundary {
    background: #c62828;
    padding: 1rem 1.5rem;
    color: white;
    border-radius: 10px;
}

/* Badges */
.badge-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

.badge-active {
    background: var(--safeboda-green-light);
    color: var(--safeboda-green);
}

.badge-pending {
    background: #fff3e0;
    color: var(--safeboda-orange);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .login-left {
        display: none;
    }
}