:root {
    /* Uasin Gishu County Official Colors */
    --ug-primary: #1e4a82;
    /* Dark Blue - Primary color */
    --ug-secondary: #f8b739;
    /* Gold/Yellow - Secondary color */
    --ug-accent: #006838;
    /* Green - for completed projects */
    --ug-danger: #d32f2f;
    /* Red - for stalled projects */
    --ug-warning: #ff9800;
    /* Orange - for ongoing projects */
    --ug-info: #1976d2;
    /* Light Blue - for info */
    --ug-light: #f8f9fa;
    /* Light background */
    --ug-dark: #343a40;
    /* Dark text */
    --ug-success: #388e3c;
    /* Success green */
}

/* Header Styles with Uasin Gishu Colors */
.navbar {
    background: linear-gradient(135deg, var(--ug-accent) 0%, #006838 100%) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--ug-secondary);
}

.navbar-brand {
    font-weight: bold;
    color: white !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--ug-secondary);
    border-radius: 2px;
}

.navbar-nav .dropdown-menu {
    background: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
    color: var(--ug-dark);
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--ug-primary);
    color: white;
    transform: translateX(5px);
}
/* Sidebar Fix */
.sidebar {
    position: fixed;
    top: 85px !important; /* Push sidebar below header */
    bottom: 100px;
    left: 0;
    z-index: 0;
    padding-top: 10px;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

/* Main content fix */
main {
    margin-top: 75px !important; /* Prevent dashboard overlapping header */
}

/* Adjust container-fluid spacing */
.container-fluid {
    padding-top: 20px;
}

/* Footer Styles with Uasin Gishu Colors */
footer {
    background: linear-gradient(135deg, var(--ug-accent) 0%, #006838 100%);
    color: white;
    margin-top: 3rem;
    border-top: 3px solid var(--ug-secondary);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ug-primary), var(--ug-secondary), var(--ug-primary));
}

footer h5 {
    color: var(--ug-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    border-left: 3px solid var(--ug-secondary);
    padding-left: 0.75rem;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

footer a:hover {
    color: var(--ug-secondary);
    transform: translateX(5px);
}

footer .list-unstyled li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

footer .list-unstyled li i {
    color: var(--ug-secondary);
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Social Media Links in Footer */
.social-links .btn {
    border: 2px solid;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.social-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-links .btn-outline-primary {
    border-color: #1877f2;
    color: #1877f2;
}

.social-links .btn-outline-primary:hover {
    background-color: #1877f2;
    color: white;
}

.social-links .btn-outline-info {
    border-color: #1da1f2;
    color: #1da1f2;
}

.social-links .btn-outline-info:hover {
    background-color: #1da1f2;
    color: white;
}

.social-links .btn-outline-danger {
    border-color: #e4405f;
    color: #e4405f;
}

.social-links .btn-outline-danger:hover {
    background-color: #e4405f;
    color: white;
}

.social-links .btn-outline-success {
    border-color: #25d366;
    color: #25d366;
}

.social-links .btn-outline-success:hover {
    background-color: #25d366;
    color: white;
}

/* County Branding Elements */
.county-badge {
    background: linear-gradient(135deg, var(--ug-primary), var(--ug-secondary));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Button Styles with County Colors */
.btn-primary {
    background: linear-gradient(135deg, var(--ug-accent) 0%, #006838 100%);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 74, 130, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #006838 0%, var(--ug-accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 74, 130, 0.4);
}

.btn-outline-primary {
    color: var(--ug-primary);
    border: 2px solid var(--ug-primary);
    background: transparent;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--ug-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 74, 130, 0.3);
}

/* Card Headers with County Colors */
.card-header {
    background: linear-gradient(135deg, var(--ug-accent) 0%, #006838 100%);
    color: white;
    border: none;
    font-weight: 600;
}

/* Progress Bars with County Colors */
.progress {
    background-color: #e9ecef;
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--ug-primary), var(--ug-secondary));
    border-radius: 1rem;
}

/* Badge Colors */
.badge.bg-primary {
    background-color: var(--ug-primary) !important;
}

.badge.bg-success {
    background-color: var(--ug-success) !important;
}

.badge.bg-warning {
    background-color: var(--ug-warning) !important;
}

.badge.bg-danger {
    background-color: var(--ug-danger) !important;
}

.badge.bg-info {
    background-color: var(--ug-info) !important;
}

/* Stats Cards with County Colors */
.stats-card.total {
    background: linear-gradient(135deg, var(--ug-accent) 0%, #006838 100%);
}

.stats-card.completed {
    border-left: 4px solid var(--ug-success);
}

.stats-card.ongoing {
    border-left: 4px solid var(--ug-warning);
}

.financial-year {
    color: #FFD700;
}
.stats-card.not-started {
    border-left: 4px solid #6c757d;
}

.stats-card.under-procurement {
    border-left: 4px solid var(--ug-info);
}

.stats-card.stalled {
    border-left: 4px solid var(--ug-danger);
}

/* Breadcrumb Styling */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--ug-secondary);
}

.breadcrumb-item a {
    color: var(--ug-primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--ug-dark);
    font-weight: 600;
}

/* Page Title Styling */
.page-title {
    color: var(--ug-accent);
    margin-bottom: 1.5rem;
    font-weight: 700;
    border-bottom: 3px solid var(--ug-secondary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Table Styling */
.table th {
    background: linear-gradient(135deg, var(--ug-accent) 0%, #006838 100%);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(30, 74, 130, 0.05);
}

/* Filter Section Styling */
.filter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--ug-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-nav .nav-link {
        margin: 0.1rem 0;
        text-align: center;
    }

    footer .row>div {
        margin-bottom: 2rem;
    }
}

/* Animation for interactive elements */
.navbar-nav .nav-link,
.btn,
.social-links .btn,
footer a {
    transition: all 0.3s ease;
}

/* Print Styles */
@media print {

    .navbar,
    footer,
    .btn {
        display: none !important;
    }
}
.parallax-gallery {
    width: 100%;
    margin: 0;
    padding: 0;
}

.parallax-item {
    position: relative;
    height: 80vh;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed; /* Parallax effect */
    background-repeat: no-repeat;
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
}

.parallax-overlay {
    background: rgba(0,0,0,0.45);
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    transition: background 0.3s ease;
}

.parallax-overlay:hover {
    background: rgba(0,0,0,0.65);
}

.overlay-content {
    color: #fff;
    max-width: 700px;
}

.overlay-content .photo-title {
    font-size: 2.2rem;
    font-weight: bold;
}

.overlay-content .photo-desc {
    font-size: 1.2rem;
    opacity: 0.9;
}

.overlay-content .project-name,
.overlay-content .location,
.overlay-content .upload-date {
    margin-top: 8px;
    font-size: 1rem;
    opacity: 0.8;
}

.delete-photo {
    opacity: 0.9;
}

.delete-photo:hover {
    opacity: 1;
}