/*
VentureWays Kenya LTD - Modern UI Enhancements
Enhanced styles for a professional, modern look
*/

/* ===================== ROOT VARIABLES ===================== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-bg: #1f2937;
    --light-bg: #f9fafb;
    --white: #ffffff;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* ===================== GENERAL IMPROVEMENTS ===================== */
body {
    font-family: 'Inter', 'Segoe UI', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ===================== BANNER IMPROVEMENTS ===================== */
.banner, .banner1 {
    position: relative;
    overflow: hidden;
}

.banner::before, .banner1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8) 0%, rgba(16, 185, 129, 0.6) 100%);
    z-index: 1;
}

.banner > *, .banner1 > * {
    position: relative;
    z-index: 2;
}

/* Modern Navigation */
.navbar-default {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav > li > a {
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    position: relative;
}

.navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav > li > a:hover::after,
.navbar-nav > li.active > a::after {
    width: 80%;
}

/* ===================== BUTTONS ===================== */
.btn, input[type="submit"], button[type="submit"] {
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.3s ease !important;
    border: none !important;
    text-transform: none !important;
    letter-spacing: 0.02em;
}

.btn-primary, input[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover, input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary-color), #34d399) !important;
}

.btn-warning {
    background: linear-gradient(135deg, var(--accent-color), #fbbf24) !important;
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4, #22d3ee) !important;
}

/* ===================== CARDS & PANELS ===================== */
.white-box, .panel, .card {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border-color) !important;
    transition: all 0.3s ease;
    overflow: hidden;
}

.white-box:hover, .panel:hover, .card:hover {
    box-shadow: var(--shadow-xl) !important;
    transform: translateY(-2px);
}

.panel-heading {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 1rem 1.5rem !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

/* ===================== FORMS ===================== */
.form-control {
    border-radius: var(--radius-md) !important;
    border: 2px solid var(--border-color) !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease !important;
    font-size: 0.95rem !important;
}

.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    outline: none !important;
}

.input-group-addon {
    background: var(--primary-color) !important;
    color: white !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
}

/* ===================== TABLES ===================== */
.table {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.table thead th {
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 1rem !important;
    border: none !important;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--light-bg);
    transform: scale(1.01);
}

.table tbody td {
    padding: 1rem !important;
    vertical-align: middle !important;
}

/* ===================== FOOTER ===================== */
.footer {
    background: linear-gradient(135deg, var(--dark-bg), #374151) !important;
    color: white !important;
    padding: 3rem 0 !important;
    margin-top: 3rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ===================== DASHBOARD STATS ===================== */
.info-box {
    border-radius: var(--radius-xl) !important;
    background: white;
    box-shadow: var(--shadow-lg) !important;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color) !important;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl) !important;
}

.info-box-icon {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg) !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

/* ===================== BADGES & LABELS ===================== */
.badge, .label {
    border-radius: var(--radius-md) !important;
    padding: 0.4rem 0.8rem !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
}

.badge-success, .label-success {
    background: var(--secondary-color) !important;
}

.badge-warning, .label-warning {
    background: var(--accent-color) !important;
}

.badge-primary, .label-primary {
    background: var(--primary-color) !important;
}

/* ===================== ALERTS ===================== */
.alert {
    border-radius: var(--radius-lg) !important;
    border-left: 4px solid !important;
    box-shadow: var(--shadow-md);
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5 !important;
    border-left-color: var(--secondary-color) !important;
    color: #065f46 !important;
}

.alert-info {
    background-color: #dbeafe !important;
    border-left-color: var(--primary-color) !important;
    color: #1e40af !important;
}

.alert-warning {
    background-color: #fef3c7 !important;
    border-left-color: var(--accent-color) !important;
    color: #92400e !important;
}

.alert-danger {
    background-color: #fee2e2 !important;
    border-left-color: #dc2626 !important;
    color: #991b1b !important;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================== ADMIN PANEL SPECIFIC ===================== */
.sidebar {
    background: #ffffff !important;
    box-shadow: var(--shadow-xl);
    border-right: 1px solid var(--border-color);
}

.sidebar .sidebar-nav {
    background: #ffffff !important;
}

.sidebar .sidebar-nav li a {
    transition: all 0.3s ease !important;
    border-left: 3px solid transparent;
    color: var(--text-dark) !important;
    font-weight: 500;
}

.sidebar .sidebar-nav li a:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    border-left-color: var(--primary-color) !important;
    padding-left: 1.5rem !important;
    color: var(--primary-color) !important;
}

.sidebar .sidebar-nav li.active a {
    background: rgba(37, 99, 235, 0.12) !important;
    border-left-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
}

.sidebar .sidebar-nav li a i {
    color: var(--text-muted);
}

.sidebar .sidebar-nav li a:hover i,
.sidebar .sidebar-nav li.active a i {
    color: var(--primary-color) !important;
}

.sidebar .nav-small-cap {
    color: var(--text-muted) !important;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar .user-pro a {
    background: var(--light-bg) !important;
    border-radius: var(--radius-md);
    margin: 0.5rem;
    padding: 0.75rem !important;
}

.sidebar .user-pro a:hover {
    background: rgba(37, 99, 235, 0.1) !important;
}

.top-left-part {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-color);
}

.top-left-part .logo b {
    color: var(--primary-color) !important;
}

.top-left-part .logo span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ===================== LOADING SPINNER ===================== */
.preloader {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

/* ===================== UTILITY CLASSES ===================== */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }

.gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

.gradient-success {
    background: linear-gradient(135deg, var(--secondary-color), #34d399) !important;
}

/* ===================== RESPONSIVE IMPROVEMENTS ===================== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .btn, input[type="submit"] {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem !important;
    }
}

/* ===================== CONTACT PAGE ENHANCEMENTS ===================== */
.w3l-map iframe {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.agileits_mail_grid_left {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.agileits_mail_grid_left input,
.agileits_mail_grid_left textarea {
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease !important;
    width: 100%;
    margin-bottom: 1rem;
}

.agileits_mail_grid_left input:focus,
.agileits_mail_grid_left textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    outline: none !important;
}

/* ===================== BLOG POST IMPROVEMENTS ===================== */
.wthree_gallery_grids {
    padding: 2rem 0;
}

.wthree_gallery_grids h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.wthree_gallery_grids p {
    line-height: 1.8;
    color: var(--text-muted);
}

/* ===================== ENHANCED NAVIGATION VISIBILITY ===================== */
.navbar-nav > li > a {
    color: var(--text-dark) !important;
    font-size: 1rem !important;
    padding: 0.75rem 1.25rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.navbar-nav > li.active > a {
    color: var(--primary-color) !important;
}

.navbar-collapse {
    visibility: visible !important;
    opacity: 1 !important;
}

/* ===================== BANNER SLIDER IMPROVEMENTS ===================== */
.flexslider {
    border: none !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-xl) !important;
    margin: 2rem 0 !important;
}

.flexslider .slides > li {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 3rem !important;
    border-radius: var(--radius-xl);
}

.flexslider .slides > li h3 {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    font-size: 2rem !important;
}

.flexslider .slides > li p {
    color: var(--text-dark) !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    margin-bottom: 0 !important;
}

.flex-direction-nav a {
    background: var(--primary-color) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    opacity: 0.8 !important;
}

.flex-direction-nav a:hover {
    opacity: 1 !important;
    background: var(--primary-dark) !important;
}

/* ===================== ADMIN NAVBAR IMPROVEMENTS ===================== */
.navbar-static-top {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
}

.navbar-header {
    background: transparent !important;
}

/* ===================== ADDITIONAL ADMIN SIDEBAR REFINEMENTS ===================== */
.sidebar .sidebar-nav .nav > li > a {
    padding: 0.875rem 1.25rem !important;
    font-size: 0.95rem !important;
}

.sidebar .sidebar-nav .nav-second-level > li > a {
    padding: 0.625rem 1.25rem 0.625rem 2.5rem !important;
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
}

.sidebar .sidebar-nav .nav-second-level > li > a:hover {
    color: var(--primary-color) !important;
    background: rgba(37, 99, 235, 0.05) !important;
}

/* ===================== ICON IMPROVEMENTS ===================== */
.fa, .linea-icon {
    margin-right: 0.5rem;
}

/* ===================== SMOOTH SCROLLING ===================== */
html {
    scroll-behavior: smooth;
}

/* ===================== IMPROVED VISIBILITY FOR ALL ELEMENTS ===================== */
* {
    visibility: visible !important;
}
