/* Radio Africa Client Solutions - Custom Styles */

:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --sidebar-bg: #1f2937;
    --sidebar-dark: #111827;
    --sidebar-hover: #374151;
    --sidebar-active: #3b82f6;
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    font-size: 0.875rem;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

/* Sidebar Enhancements */
.sidebar {
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-dark) 100%);
    color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 1.25rem 0;
}

.sidebar h4 {
    color: white;
    font-weight: 700;
    padding: 0 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.875rem;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.625rem 1.25rem;
    margin: 0.2rem 0;
    border-radius: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
}

.sidebar .nav-link:hover {
    background-color: var(--sidebar-hover);
    color: white;
    padding-left: 1.5rem;
}

.sidebar .nav-link.active {
    background-color: var(--sidebar-active);
    color: white;
    border-left: 4px solid white;
    font-weight: 600;
}

.sidebar .nav-link i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

/* Main Content Area */
.main-content {
    background-color: #f8fafc;
    padding: 1.5rem;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

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

.card-header {
    background-color: white;
    border-bottom: 2px solid #e2e8f0;
    padding: 0.875rem 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9375rem;
}

.card-body {
    padding: 1.25rem;
}

/* Dashboard Stat Cards */
.stat-card {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: none;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transition: var(--transition);
}

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

.stat-card:hover::before {
    transform: scale(1.1);
}

.stat-card .card-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 0.4rem;
}

.stat-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.4rem 0;
}

.stat-card .card-text {
    font-size: 0.75rem;
    opacity: 0.9;
    margin: 0;
}

.stat-card i {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    opacity: 0.2;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    padding: 0.4375rem 1rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    font-size: 0.875rem;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #34d399 100%);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, var(--success-color) 100%);
}

/* Tables */
.table {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.table thead th {
    border: none;
    padding: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: #f1f5f9;
    transform: scale(1.01);
}

.table tbody td {
    padding: 0.875rem;
    vertical-align: middle;
    border-color: #e2e8f0;
    font-size: 0.875rem;
}

/* Badges */
.badge {
    padding: 0.3rem 0.65rem;
    font-weight: 500;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
}

/* Forms */
.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e2e8f0;
    padding: 0.5rem 0.875rem;
    transition: var(--transition);
    font-size: 0.875rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 0.875rem 1rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert i {
    margin-right: 0.5rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: #475569;
    margin-bottom: 0.5rem;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.875rem;
    border-bottom: 2px solid #e2e8f0;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Filter Cards */
.filter-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.25rem;
}

/* Pagination */
.pagination .page-link {
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
    border: 2px solid #e2e8f0;
    color: var(--primary-color);
    transition: var(--transition);
}

.pagination .page-link:hover {
    background-color: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-color: var(--primary-color);
    color: white;
}

/* Login Page */
.login-container {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.login-card .card-body {
    padding: 2.5rem;
}

.login-card h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 1.75rem;
}

.login-card .text-muted {
    color: #64748b;
    margin-bottom: 1.75rem;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .stat-card h2 {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm {
    box-shadow: var(--card-shadow);
}

.shadow-md {
    box-shadow: var(--card-shadow-hover);
}

