/* Field Scribe CSS - Complete Styling */

:root {
    --primary-green: #1a4d3a;
    --secondary-green: #2d7a5a;
    --accent-orange: #ff6b35;
    --light-gray: #f8f9fa;
    --border-color: #e0e6ed;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --sidebar-width: 280px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: white;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
}

body.sidebar-collapsed .main-content {
    margin-left: 0;
    width: 100vw;
}

body.sidebar-collapsed .header {
    left: 0;
    width: 100%;
}

body.sidebar-collapsed .page-content {
    max-width: 100vw;
}

body.sidebar-collapsed .dashboard-content {
    max-width: 100vw;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 18px;
    font-weight: 700;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand logo image */
.sidebar-logo-full {
    height: 30px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

/* Hide full logo text in collapsed state; show a small icon mark instead */
body.sidebar-collapsed .sidebar-logo-full {
    max-width: 26px;
    height: 26px;
    object-fit: cover;
    object-position: left center;
}

.sidebar-collapse-btn {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    height: 40px;
    width: auto;
}

.sidebar-nav {
    list-style: none;
    padding: 20px 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-orange);
}

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

.sidebar-nav .nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 25px;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--light-gray);
    width: calc(100vw - var(--sidebar-width));
    position: relative;
    overflow-x: hidden;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px 0 20px;
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    width: calc(100% - var(--sidebar-width));
    transition: left 0.3s ease, width 0.3s ease;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.header-left .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.header-left .sidebar-toggle:hover {
    background: var(--light-gray);
    color: var(--text-dark);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Top Header */
.top-header {
    background: white;
    height: var(--header-height);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background-color: var(--light-gray);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-green);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(26, 77, 58, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: var(--light-gray);
    color: var(--text-muted);
    font-size: 17px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-icon-btn:hover {
    background: #e8f5e9;
    color: var(--primary-green);
}

.notification-icon {
    position: relative;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.3s ease;
}

.notification-icon:hover {
    color: var(--primary-green);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--accent-orange);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 0 4px;
    border: 2px solid white;
}

.notification-dropdown .dropdown-item {
    border-bottom: 1px solid #f0f0f0;
}

.notification-dropdown .dropdown-item:last-of-type {
    border-bottom: none;
}

.notification-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

.notification-dropdown-item.bg-light {
    background-color: #f0f7ff !important;
}

.sidebar-nav .nav-link .badge {
    font-size: 0.65rem;
    padding: 2px 6px;
}

.header-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
    margin: 0 4px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.user-profile:hover {
    background: var(--light-gray);
}

.profile-image {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.user-profile:hover .profile-image {
    border-color: var(--secondary-green);
}

.user-info {
    text-align: right;
}

.user-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.3;
}

.user-email {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

.header-title-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.header-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Page Content */
.page-content {
    padding: 30px;
    padding-top: calc(var(--header-height) + 30px);
    width: 100%;
    max-width: calc(100vw - var(--sidebar-width));
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Dashboard specific styles */
.dashboard-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 30px;
    box-sizing: border-box;
    padding-top: calc(var(--header-height) + 30px);
}

/* Topbar styling */
.topbar {
    background: white;
    height: var(--header-height);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.topbar-left {
    flex: 1;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.3px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background-color: var(--light-gray);
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-green);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(26, 77, 58, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 240px;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .header {
        left: 0;
        width: 100%;
        padding: 0 12px;
    }

    .header-right .user-info {
        display: none;
    }

    .header-divider {
        display: none;
    }

    .page-title {
        font-size: 16px;
    }

    .header-breadcrumb {
        display: none;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .dashboard-content {
        max-width: 100%;
        padding: 15px;
    }

    .page-content {
        padding: 20px 15px;
    }

    .topbar {
        padding: 0 20px;
    }

    .search-box {
        width: 200px;
    }
}

@media (max-width: 576px) {
    .topbar {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }

    .topbar-left,
    .topbar-right {
        width: 100%;
    }

    .topbar-right {
        margin-top: 15px;
        justify-content: center;
    }

    .search-box {
        width: 100%;
        max-width: 300px;
    }

    .dashboard-content {
        padding: 10px;
    }
}

/* Fix container overflow */
.container-fluid,
.container {
    overflow-x: hidden;
}

/* Welcome card styling */
.welcome-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    text-align: center;
}

.welcome-content h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.welcome-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.getting-started-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.step-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.step-number {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    text-align: left;
}

.step-content h5 {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h5 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.empty-state p {
    margin-bottom: 20px;
}

/* Ensure containers don't exceed viewport */
.container-fluid {
    max-width: none;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0;
    margin-right: 0;
}

/* Fix row margins and ensure proper spacing */
.row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.col-lg-3, .col-md-6, .col-lg-8, .col-lg-4, .col-12 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure cards don't exceed their containers */
.metric-card, .chart-card, .activity-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.page-header p {
    color: var(--text-muted);
    margin: 5px 0 0 0;
}

/* Cards */
.metric-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.metric-card .metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    font-size: 20px;
}

.metric-card .metric-icon {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
}

.metric-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.metric-content p {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.metric-change {
    display: flex;
    align-items: center;
    gap: 8px;
}

.change-badge {
    background-color: var(--accent-orange);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.change-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* Chart Card */
.chart-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.status-breakdown {
    padding: 20px 0;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.status-item:last-child {
    border-bottom: none;
}

.status-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-color.completed { background-color: var(--success-color); }
.status-color.on-track { background-color: var(--info-color); }
.status-color.delayed { background-color: var(--danger-color); }
.status-color.delayed-start { background-color: #e67e22; }
.status-color.at-risk { background-color: var(--warning-color); }
.status-color.not-started { background-color: var(--text-muted); }

.status-label {
    flex: 1;
    font-weight: 500;
}

.status-count {
    font-weight: 600;
    color: var(--text-dark);
}

/* Calendar Widget */
.calendar-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    text-align: center;
    padding: 8px 4px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background-color: var(--light-gray);
}

.calendar-day.today {
    background-color: var(--accent-orange);
    color: white;
}

.calendar-day.empty {
    color: transparent;
    cursor: default;
}

/* Activity Card */
.activity-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.activity-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.view-all-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.view-all-link:hover {
    color: var(--secondary-green);
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.activity-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 2px;
}

.activity-description {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Projects Grid */
.projects-grid {
    margin-top: 20px;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 160px;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 40px;
}

.project-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-status.status-completed {
    background-color: var(--success-color);
    color: white;
}

.project-status.status-on_track {
    background-color: var(--info-color);
    color: white;
}

.project-status.status-delayed {
    background-color: var(--danger-color);
    color: white;
}

.project-status.status-at_risk {
    background-color: var(--warning-color);
    color: white;
}

.project-status.status-not_started {
    background-color: var(--text-muted);
    color: white;
}

.project-status.status-delayed_start {
    background-color: #e67e22;
    color: white;
}

.project-content {
    padding: 20px;
}

.project-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.project-location {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-timeline {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Filters */
.filters-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.filters-form .form-select {
    border-color: var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
}

.filters-form .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(26, 77, 58, 0.1);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: white;
}

.btn-primary:hover {
    background-color: #e55a2e;
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--accent-orange);
    color: white;
}

.btn-secondary {
    background-color: var(--text-muted);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Team Management */
.team-table-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.team-table {
    margin: 0;
}

.team-table th {
    background-color: var(--light-gray);
    border: none;
    padding: 20px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.team-table td {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    vertical-align: middle;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-details {
    flex: 1;
}

.member-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.member-email {
    color: var(--text-muted);
    font-size: 13px;
}

.role-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.role-super_admin {
    background-color: #6f42c1;
    color: white;
}

.role-badge.role-admin {
    background-color: var(--danger-color);
    color: white;
}

.role-badge.role-contributor {
    background-color: var(--info-color);
    color: white;
}

.role-badge.role-viewer {
    background-color: var(--text-muted);
    color: white;
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    min-height: 100vh;
    color: white;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    height: 50px;
    margin-bottom: 20px;
}

.auth-header h2 {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.auth-header p {
    color: var(--text-muted);
}

.auth-form .form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    margin-bottom: 5px;
}

.auth-form .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(26, 77, 58, 0.1);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
}

.otp-inputs {
    gap: 10px;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
}

/* Profile Upload */
.profile-upload {
    margin-bottom: 20px;
}

.upload-area {
    width: 120px;
    height: 120px;
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.upload-area:hover {
    border-color: var(--primary-green);
    background-color: var(--light-gray);
}

.upload-area i {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.upload-area p {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

.preview-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Cover Photo Upload */
.cover-photo-upload {
    position: relative;
}

.upload-area {
    width: 100%;
    height: 200px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-green);
    background-color: rgba(var(--primary-green-rgb), 0.05);
}

.upload-area i {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.upload-area p {
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

.preview-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.remove-photo {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
}

.current-cover-image {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* Project Cover Photo */
.project-cover-photo {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 30px;
    color: white;
}

.project-basic-info .project-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.project-basic-info .project-location {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

/* Project Detail */
.project-detail-page {
    padding: 0;
}

.project-header {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.project-title-section h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.project-location {
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.project-stats {
    text-align: right;
}

.stat-item {
    margin-bottom: 15px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress {
    flex: 1;
    height: 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--success-color);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Project Tabs */
.project-tabs {
    margin-bottom: 20px;
}

.nav-tabs {
    border: none;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    padding: 12px 20px;
    margin-right: 5px;
    transition: all 0.3s ease;
}

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

.nav-tabs .nav-link:hover {
    background-color: var(--light-gray);
    border: none;
}

.tab-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

/* Status Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.status-completed,
.status-badge.status-active {
    background-color: var(--success-color);
    color: white;
}

.badge.status-on_track {
    background-color: var(--info-color);
    color: white;
}

.badge.status-delayed {
    background-color: var(--danger-color);
    color: white;
}

.badge.status-at_risk {
    background-color: var(--warning-color);
    color: white;
}

.badge.status-not_started,
.status-badge.status-inactive {
    background-color: var(--text-muted);
    color: white;
}

.badge.status-delayed_start {
    background-color: #e67e22;
    color: white;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h4,
.empty-state h5 {
    margin-bottom: 15px;
    color: var(--text-muted);
}

/* Search Input Groups */
.search-input-group {
    position: relative;
}

.search-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 5;
}

.search-input-group .form-control {
    padding-left: 45px;
}

/* Admin Dashboard */
.admin-metric .metric-icon.system-users {
    background: linear-gradient(135deg, #6f42c1, #9370db);
}

.admin-metric .metric-icon.system-projects {
    background: linear-gradient(135deg, var(--info-color), #20c997);
}

.admin-metric .metric-icon.system-subscriptions {
    background: linear-gradient(135deg, var(--warning-color), #fd7e14);
}

.admin-metric .metric-icon.system-revenue {
    background: linear-gradient(135deg, var(--success-color), #20c997);
}

.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.admin-card .card-header {
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card .card-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.admin-card .card-body {
    padding: 20px;
}

.performance-metrics {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.performance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.performance-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-dark);
    min-width: 120px;
}

.performance-value {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.percentage {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 40px;
    text-align: right;
}

.session-count {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 18px;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.action-item:hover {
    background-color: var(--light-gray);
    transform: translateX(5px);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    font-size: 16px;
}

.action-content h6 {
    margin: 0 0 4px 0;
    color: var(--text-dark);
    font-weight: 600;
}

.action-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.recent-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-item:last-child {
    border-bottom: none;
}

.item-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.item-avatar.project-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    color: var(--text-muted);
}

.item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-content {
    flex: 1;
}

.item-content h6 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.item-content p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.item-status {
    flex-shrink: 0;
}

/* Subscription Plans */
.subscriptions-page {
    max-width: 1200px;
    margin: 0 auto;
}

.free-trial-banner {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: white;
}

.banner-content h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

.banner-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.plans-container {
    margin: 40px 0;
}

.plan-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.plan-card.popular {
    border-color: var(--accent-orange);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-orange);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
}

.plan-header h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.currency {
    font-size: 20px;
    color: var(--text-muted);
}

.amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
}

.period {
    font-size: 16px;
    color: var(--text-muted);
}

.savings {
    color: var(--success-color);
    font-weight: 600;
    font-size: 14px;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-dark);
}

.plan-features i {
    color: var(--success-color);
    width: 16px;
}

.plan-action {
    margin-top: 30px;
}

/* Payment Page */
.payment-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.order-summary {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
    height: fit-content;
}

.plan-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.plan-info h5 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.plan-description {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

.plan-price .amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.pricing-breakdown {
    margin-bottom: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-muted);
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 2px solid var(--border-color);
    font-weight: 700;
    color: var(--text-dark);
    font-size: 18px;
}

.security-badges {
    display: flex;
    gap: 15px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success-color);
    font-size: 12px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.method-option {
    flex: 1;
}

.method-option input[type="radio"] {
    display: none;
}

.method-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.method-option input[type="radio"]:checked + .method-label {
    border-color: var(--primary-green);
    background-color: rgba(26, 77, 58, 0.05);
}

.method-label i {
    font-size: 20px;
}

.paypal-info {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.paypal-info i {
    color: #003087;
    margin-bottom: 15px;
}

.guarantee-section {
    margin-top: 40px;
    padding: 20px;
}

.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--success-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .top-header {
        padding: 0 15px;
    }

    .search-container {
        max-width: 200px;
    }

    .page-content {
        padding: 20px 15px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .metric-card {
        margin-bottom: 15px;
    }

    .filters-form .row > div {
        margin-bottom: 10px;
    }

    .auth-card {
        padding: 30px 20px;
        margin: 20px;
    }

    .plan-card {
        margin-bottom: 20px;
    }

    .plan-card.popular {
        transform: none;
    }

    .payment-container {
        padding: 20px;
        margin: 20px;
    }

    .payment-methods {
        flex-direction: column;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

.flash-messages .alert {
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

/* Horizontal Timeline Layout with Enhanced Scrolling */
.timeline-container {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    max-height: 70vh;
    overflow: hidden;
    position: relative;
}

.timeline-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.timeline-content {
    position: relative;
    width: 100%;
    height: calc(100% - 40px);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) #f1f1f1;
    padding-bottom: 20px;
}

/* Custom scrollbar for timeline */
.timeline-content::-webkit-scrollbar {
    height: 12px;
}

.timeline-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.timeline-content::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 6px;
    transition: background 0.3s ease;
}

.timeline-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
}

.timeline {
    display: flex;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 30px;
    padding: 40px 20px 20px 20px;
    min-width: max-content;
    position: relative;
    width: fit-content;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-green), var(--secondary-green));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    min-width: calc(100% - 40px);
}

.timeline-item {
    position: relative;
    flex-shrink: 0;
    min-width: 280px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideInFromTop 0.6s ease forwards;
}

/* Timeline Navigation Controls */
.timeline-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-navigation:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.timeline-nav-left {
    left: 10px;
}

.timeline-nav-right {
    right: 10px;
}

.timeline-navigation.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Timeline scroll indicators */
.timeline-scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
    backdrop-filter: blur(5px);
}

.scroll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.3s ease;
}

.scroll-dot.active {
    background: var(--primary-green);
    transform: scale(1.3);
}

/* Timeline item hover effects for better navigation */
.timeline-item:hover {
    transform: translateY(-5px);
    z-index: 5;
}

.timeline-item:hover .timeline-content-item {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Smooth scrolling behavior */
.timeline-content {
    scroll-behavior: smooth;
}

/* Touch scrolling for mobile */
.timeline-content {
    -webkit-overflow-scrolling: touch;
}

/* Enhanced timeline header with scroll info */
.timeline-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: -20px;
    background: white;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-scroll-info {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-scroll-controls {
    display: flex;
    gap: 5px;
}

.timeline-scroll-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.timeline-scroll-btn:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

/* Schedule Table Scrolling */
.schedule-table-container {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: white;
}

.schedule-table {
    margin-bottom: 0;
}

.schedule-table th {
    background-color: var(--light-gray);
    border-top: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 12px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.schedule-table td {
    padding: 12px;
    vertical-align: middle;
    white-space: nowrap;
    border-top: 1px solid var(--border-color);
}

.schedule-table .wbs-number {
    font-weight: 600;
    color: var(--primary-green);
}

.schedule-table .task-name {
    max-width: 250px;
    white-space: normal;
    line-height: 1.4;
}

/* WBS Level Indentation */
.schedule-table .wbs-level-1 {
    background-color: #fff;
    font-weight: 600;
}

.schedule-table .wbs-level-2 {
    background-color: rgba(46, 125, 50, 0.04);
    font-weight: 500;
}

.schedule-table .wbs-level-3 {
    background-color: rgba(46, 125, 50, 0.08);
    font-weight: 400;
}

.schedule-table .wbs-level-4 {
    background-color: rgba(46, 125, 50, 0.12);
    font-weight: 400;
}

.schedule-table .wbs-level-5 {
    background-color: rgba(46, 125, 50, 0.15);
    font-weight: 400;
}

.schedule-table .wbs-level-6 {
    background-color: rgba(46, 125, 50, 0.18);
    font-weight: 400;
}

.schedule-table .wbs-level-1 td:first-child {
    border-left: 3px solid transparent;
}

.schedule-table .wbs-level-2 td:first-child {
    border-left: 3px solid #66bb6a;
}

.schedule-table .wbs-level-3 td:first-child {
    border-left: 3px solid #43a047;
}

.schedule-table .wbs-level-4 td:first-child {
    border-left: 3px solid #2e7d32;
}

.schedule-table .wbs-level-5 td:first-child {
    border-left: 3px solid #1b5e20;
}

.schedule-table .wbs-level-6 td:first-child {
    border-left: 3px solid #0d3d14;
}

/* Task hierarchy styling */
.task-name-container {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.task-hierarchy-indicator {
    flex-shrink: 0;
    width: 20px;
}

.task-title {
    flex: 1;
    line-height: 1.4;
}

/* Hierarchy connector lines */
.schedule-table tr.wbs-level-2 .task-name-container::before,
.schedule-table tr.wbs-level-3 .task-name-container::before,
.schedule-table tr.wbs-level-4 .task-name-container::before,
.schedule-table tr.wbs-level-5 .task-name-container::before,
.schedule-table tr.wbs-level-6 .task-name-container::before {
    content: "└─";
    color: #999;
    margin-right: 6px;
    font-family: monospace;
    font-size: 13px;
    flex-shrink: 0;
}

/* Profile Settings Styles */
.settings-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Toggle Switches & Checkboxes ──────────────────────────────────────── */

/* Base checkbox style */
.form-check-input {
    cursor: pointer;
    border: 2px solid #adb5bd;
    background-color: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.15s ease;
}

/* Checked checkbox (non-switch) */
.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.form-check-input:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* ── Toggle Switch (form-switch) specific ──────────────────────────────── */
.form-check.form-switch .form-check-input {
    width: 3em;
    height: 1.6em;
    background-color: #cfd4da;
    border-color: #adb5bd;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 2em;
    transition: background-color 0.25s ease, border-color 0.25s ease, background-position 0.15s ease-in-out;
}

.form-check.form-switch .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    background-position: right center;
}

.form-check.form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Label alignment for switches */
.form-check.form-switch .form-check-label {
    cursor: pointer;
    font-weight: 500;
    padding-left: 0.5em;
}

/* Disabled state */
.form-check-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ON/OFF label badge shown next to switch (optional companion class) */
.toggle-state-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    min-width: 32px;
    text-align: center;
    transition: all 0.2s ease;
}
.toggle-state-label.is-on  { background: #d4edda; color: #155724; }
.toggle-state-label.is-off { background: #f8f9fa; color: #6c757d; border: 1px solid #dee2e6; }

/* CSI division toggle rows */
.csi-toggle-row.active-row  { background: #f0fff4 !important; border-color: #b2dfcb !important; }
.csi-toggle-row.inactive-row { background: #f8f9fa !important; opacity: 0.75; }

.app-info .row {
    font-size: 0.9rem;
}

/* Daily Report Modern Styling */
.daily-report-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 50%, #45a049 100%);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(26, 77, 58, 0.2);
}

.header-content {
    padding: 2.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

nav[aria-label="breadcrumb"] {
    margin-bottom: 1rem;
}

nav[aria-label="breadcrumb"] .breadcrumb {
    background: var(--bg-secondary, #f0f2f5);
    border: 1px solid var(--border-color, #e2e5e9);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    font-size: 0.85rem;
}

nav[aria-label="breadcrumb"] .breadcrumb-item {
    color: var(--text-muted, #6c757d);
    display: flex;
    align-items: center;
}

nav[aria-label="breadcrumb"] .breadcrumb-item + .breadcrumb-item::before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.55rem;
    color: var(--text-muted, #adb5bd);
    padding: 0 0.6rem;
    opacity: 0.6;
}

nav[aria-label="breadcrumb"] .breadcrumb-item a {
    color: var(--primary-green, #1a4d3a);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
}

nav[aria-label="breadcrumb"] .breadcrumb-item a:hover {
    color: var(--primary-green-dark, #133d2e);
    background: rgba(26, 77, 58, 0.08);
}

nav[aria-label="breadcrumb"] .breadcrumb-item a i {
    margin-right: 0.35rem;
    font-size: 0.78rem;
    opacity: 0.7;
}

nav[aria-label="breadcrumb"] .breadcrumb-item.active {
    color: var(--text-primary, #333);
    font-weight: 600;
}

.header-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
}

.header-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Report Progress Steps */
.report-progress-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.report-progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: var(--primary-green);
    color: white;
    box-shadow: 0 0 0 4px rgba(26, 77, 58, 0.2);
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
}

.step.active .step-label {
    color: var(--primary-green);
}

/* Modern Form Card */
.modern-form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(26, 77, 58, 0.1);
}

.form-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(26, 77, 58, 0.1);
}

.form-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.form-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.form-content {
    padding: 2rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.section-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.section-title h5 {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}

.section-title p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.section-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Modern Form Controls */
.form-control-modern {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control-modern:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(26, 77, 58, 0.1);
    background: white;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.required {
    color: #dc3545;
    margin-left: 0.25rem;
}

.word-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Tasks Grid */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.task-column {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.task-column.completed {
    border-color: rgba(40, 167, 69, 0.2);
}

.task-column.ongoing {
    border-color: rgba(255, 193, 7, 0.2);
}

.task-column.upcoming {
    border-color: rgba(23, 162, 184, 0.2);
}

.task-column-header {
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.task-status-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.task-status-icon.completed {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.task-status-icon.ongoing {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.task-status-icon.upcoming {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

.task-column-title h6 {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}

.task-column-title p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.task-select-wrapper {
    padding: 1rem;
}

.modern-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fafafa;
}

.modern-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(26, 77, 58, 0.1);
}

/* Modern Submit Button */
.form-actions {
    padding: 2rem 0;
    border-top: 2px solid #e9ecef;
    margin-top: 2rem;
}

.modern-submit-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.modern-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 77, 58, 0.3);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.modern-submit-btn:hover .btn-shine {
    left: 100%;
}

/* Sidebar Cards */
.sidebar-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 77, 58, 0.1);
    overflow: hidden;
}

.sidebar-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(26, 77, 58, 0.1);
    padding: 1.25rem;
}

.sidebar-card .card-title {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.stats-card .stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.recent-reports-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.recent-report-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.report-date {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.report-author {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    color: #e9ecef;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .report-progress-steps {
        gap: 1rem;
        padding: 1rem;
    }

    .step-circle {
        width: 35px;
        height: 35px;
    }

    .tasks-grid {
        grid-template-columns: 1fr;
    }

    .form-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .form-actions .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Import Schedule Modal Styles */
.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary-green);
    background: rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
}

.upload-zone.drag-over {
    border-style: solid;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.upload-content {
    width: 100%;
}

.upload-zone i {
    color: #6c757d;
    transition: color 0.3s ease;
}

.upload-zone:hover i,
.upload-zone.drag-over i {
    color: var(--primary-green);
}

.import-step {
    min-height: 300px;
}

.import-step .table-responsive {
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.import-step .sticky-top {
    background: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6;
}

/* Activity preview table styles */
.activity-checkbox {
    transform: scale(1.2);
}

.conflict-indicator {
    font-size: 0.875rem;
}

.conflict-indicator.conflict-duplicate {
    color: #fd7e14;
}

.conflict-indicator.conflict-validation {
    color: #dc3545;
}

.conflict-indicator.conflict-none {
    color: #198754;
}

/* Import modal responsive adjustments */
@media (max-width: 768px) {
    .upload-zone {
        padding: 30px 15px;
        min-height: 150px;
    }

    .upload-zone h5 {
        font-size: 1.1rem;
    }

    .import-step {
        min-height: auto;
    }

    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Progress indicators */
.import-progress {
    position: relative;
    margin-bottom: 20px;
}

.import-step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.step-item {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 0;
    left: 50%;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
}

.step-item.active::after {
    background: var(--primary-green);
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.step-item.active .step-circle {
    background: var(--primary-green);
    color: white;
}

.step-item.completed .step-circle {
    background: #198754;
    color: white;
}

.step-label {
    margin-left: 10px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Animation for import process */
.import-animation {
    animation: fadeInUp 0.5s ease;
}

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

/* File type indicators */
.file-type-csv::before {
    content: "📊";
    margin-right: 5px;
}

.file-type-excel::before {
    content: "📈";
    margin-right: 5px;
}

.file-type-xml::before {
    content: "📄";
    margin-right: 5px;
}

/* Conflict highlighting */
.table-warning td {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.table-danger td {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* Import summary styles */
.import-summary-card {
    background: linear-gradient(135deg, var(--primary-green), #45a049);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.import-summary-card .card-title {
    color: white;
    margin-bottom: 10px;
}

.import-summary-card .card-text {
    opacity: 0.9;
}

/* Mobile Column Selector */
#mobileColumnSelect {
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 500;
    background-color: white;
    border: 2px solid var(--border-color);
}

#mobileColumnSelect:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(26, 77, 58, 0.1);
}

/* Mobile Kanban Adjustments */
@media (max-width: 991.98px) {
    .kanban-board {
        min-height: auto;
        margin: 0 -15px;
        padding: 0 10px;
    }

    .kanban-column {
        min-height: auto;
        background-color: #f8f9fa;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .kanban-column-header {
        padding: 0.75rem 1rem;
        border-radius: 12px 12px 0 0;
    }

    .kanban-column-header h6 {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .kanban-column-body {
        min-height: auto;
        max-height: 60vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem;
    }

    .kanban-card {
        margin-bottom: 0.5rem !important;
    }

    .kanban-card .card {
        border-radius: 8px;
    }

    .kanban-card .card-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .kanban-card .card-text {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .page-header p {
        font-size: 0.85rem;
    }

    .page-content {
        padding: 15px 10px;
    }

    /* Mobile column selector improvements */
    #mobileColumnSelect {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        background: white;
        border: 2px solid #dee2e6;
    }

    /* Quick stats improvements for mobile */
    .row.mt-4.g-3 .col-6 {
        padding: 0 0.25rem;
    }

    .row.mt-4.g-3 .card {
        border-radius: 8px;
    }

    .row.mt-4.g-3 .card-body {
        padding: 0.75rem 0.5rem;
    }

    .row.mt-4.g-3 h5 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .row.mt-4.g-3 p {
        font-size: 0.7rem;
        margin-bottom: 0;
    }
}

/* Ensure page header is visible */
.page-content {
    padding-top: 30px;
}

/* Fix for authenticated layout with header */
.main-content .page-content {
    padding-top: calc(var(--header-height) + 30px);
}

/* Kanban board specific - ensure header clears fixed nav */
.kanban-page-wrapper {
    margin-top: calc(var(--header-height) + 20px);
}

/* Kanban Board Routes */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 240px;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .dashboard-content {
        max-width: 100%;
        padding: 15px;
    }

    .page-content {
        padding: 20px 15px;
        padding-top: 20px;
    }

    .topbar {
        padding: 0 20px;
    }

    .search-box {
        width: 200px;
    }

    /* Mobile Kanban specific */
    .kanban-board {
        min-height: auto;
    }

    .kanban-column-header h6 {
        font-size: 0.9rem;
    }

    .kanban-card {
        margin-bottom: 1rem !important;
    }

    .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* ========================================
   SCHEDULED TASK CARDS - Daily Report
   ======================================== */

.scheduled-task-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scheduled-task-card {
    background: #fff;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s ease forwards;
}

.scheduled-task-card:nth-child(1) { animation-delay: 0.05s; }
.scheduled-task-card:nth-child(2) { animation-delay: 0.1s; }
.scheduled-task-card:nth-child(3) { animation-delay: 0.15s; }
.scheduled-task-card:nth-child(4) { animation-delay: 0.2s; }
.scheduled-task-card:nth-child(5) { animation-delay: 0.25s; }
.scheduled-task-card:nth-child(6) { animation-delay: 0.3s; }
.scheduled-task-card:nth-child(7) { animation-delay: 0.35s; }
.scheduled-task-card:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scheduled-task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.scheduled-task-card.completed {
    border-color: var(--success-color);
    background: linear-gradient(to right, rgba(40, 167, 69, 0.05), transparent);
}

.scheduled-task-card.in-progress {
    border-color: var(--info-color);
    background: linear-gradient(to right, rgba(23, 162, 184, 0.05), transparent);
}

.scheduled-task-card.blocked {
    border-color: var(--danger-color);
    background: linear-gradient(to right, rgba(220, 53, 69, 0.05), transparent);
}

.scheduled-task-card.not-started {
    border-color: var(--warning-color);
    background: linear-gradient(to right, rgba(255, 193, 7, 0.05), transparent);
}

.scheduled-task-card.behind-schedule {
    border-left: 4px solid var(--danger-color);
}

.scheduled-task-card.priority-critical {
    border-top: 3px solid var(--danger-color);
}

.scheduled-task-card.priority-high {
    border-top: 3px solid var(--warning-color);
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.task-info {
    flex: 1;
}

.task-wbs {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.task-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.task-assignee {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.task-assignee i {
    margin-right: 6px;
}

.task-status-selector .form-select {
    min-width: 130px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.task-card-body {
    margin-bottom: 16px;
}

.progress-section {
    margin-bottom: 16px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.progress-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
}

.progress-slider {
    width: 100%;
    height: 8px;
    margin-bottom: 8px;
}

.progress-slider::-webkit-slider-thumb {
    background: var(--primary-green);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
}

.progress-bar-container {
    position: relative;
}

.progress-bar-container .progress {
    height: 10px;
    border-radius: 6px;
    background: #e9ecef;
}

.expected-progress-marker {
    position: absolute;
    top: -20px;
    transform: translateX(-50%);
}

.expected-label {
    font-size: 0.7rem;
    color: var(--danger-color);
    white-space: nowrap;
}

.behind-schedule-alert {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--danger-color);
}

.behind-schedule-alert i {
    font-size: 1rem;
}

.overdue-task {
    border-left: 4px solid #ffc107 !important;
    background: rgba(255, 193, 7, 0.04);
}

.overdue-task .task-card-header {
    border-bottom-color: rgba(255, 193, 7, 0.2);
}

.task-dates {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.task-dates i {
    margin-right: 6px;
    color: var(--primary-green);
}

.task-card-actions {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.mark-complete-btn, .report-issue-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mark-complete-btn:hover:not(:disabled) {
    background: var(--success-color);
    color: white;
    transform: translateY(-1px);
}

.report-issue-btn:hover {
    background: var(--warning-color);
    color: #212529;
    transform: translateY(-1px);
}

/* Upcoming Tasks List */
.upcoming-task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upcoming-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--primary-green);
    opacity: 0;
    animation: fadeInUp 0.3s ease forwards;
}

.upcoming-task-item:nth-child(1) { animation-delay: 0.1s; }
.upcoming-task-item:nth-child(2) { animation-delay: 0.15s; }
.upcoming-task-item:nth-child(3) { animation-delay: 0.2s; }
.upcoming-task-item:nth-child(4) { animation-delay: 0.25s; }
.upcoming-task-item:nth-child(5) { animation-delay: 0.3s; }

.upcoming-wbs {
    background: rgba(26, 77, 58, 0.1);
    color: var(--primary-green);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.upcoming-title {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
}

.upcoming-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.upcoming-date i {
    margin-right: 4px;
}

/* Scheduled Tasks Summary */
.scheduled-tasks-summary {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

#task-count-badge {
    font-size: 0.9rem;
    padding: 8px 14px;
}

/* Form Range Slider Enhancement */
.form-range::-webkit-slider-track {
    background: linear-gradient(to right, var(--primary-green) var(--value, 0%), #e9ecef var(--value, 0%));
    border-radius: 4px;
    height: 8px;
}

/* Mobile Responsiveness for Task Cards */
@media (max-width: 768px) {
    .scheduled-task-card {
        padding: 16px;
    }
    
    .task-card-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .task-status-selector {
        width: 100%;
    }
    
    .task-status-selector .form-select {
        width: 100%;
    }
    
    .task-card-actions {
        flex-direction: column;
    }
    
    .task-dates {
        flex-direction: column;
        gap: 6px;
    }
}

.issues-widget-card {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color, #dee2e6);
}

.issues-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.issue-stat-card {
    text-align: center;
    padding: 12px 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.issue-stat-card .issue-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.issue-stat-card .issue-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6c757d;
    margin-top: 2px;
}

.issue-stat-open {
    background: rgba(220, 53, 69, 0.06);
    border-color: rgba(220, 53, 69, 0.15) !important;
}
.issue-stat-open .issue-stat-number { color: #dc3545; }

.issue-stat-new {
    background: rgba(255, 193, 7, 0.06);
    border-color: rgba(255, 193, 7, 0.15) !important;
}
.issue-stat-new .issue-stat-number { color: #e6a800; }

.issue-stat-progress {
    background: rgba(13, 110, 253, 0.06);
    border-color: rgba(13, 110, 253, 0.15) !important;
}
.issue-stat-progress .issue-stat-number { color: #0d6efd; }

.issue-stat-resolved {
    background: rgba(25, 135, 84, 0.06);
    border-color: rgba(25, 135, 84, 0.15) !important;
}
.issue-stat-resolved .issue-stat-number { color: #198754; }

.assignee-issue-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.assignee-issue-row:last-child {
    border-bottom: none;
}

.assignee-avatar-sm {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-right: 8px;
    flex-shrink: 0;
}

.assignee-avatar-sm i {
    font-size: 0.6rem;
    color: #adb5bd;
}

.assignee-name {
    font-size: 0.85rem;
    color: #343a40;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.assignee-bar-container {
    width: 60px;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.assignee-bar {
    height: 100%;
    background: #0d6efd;
    border-radius: 2px;
    min-width: 4px;
}

.assignee-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    min-width: 20px;
    text-align: right;
}

.rpt-stat-card {
    text-align: center;
    padding: 14px 8px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.rpt-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.rpt-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6c757d;
    margin-top: 2px;
}

.rpt-due {
    background: rgba(255, 193, 7, 0.06);
    border-color: rgba(255, 193, 7, 0.2) !important;
}
.rpt-due .rpt-stat-num { color: #e6a800; }

.rpt-submitted {
    background: rgba(25, 135, 84, 0.06);
    border-color: rgba(25, 135, 84, 0.15) !important;
}
.rpt-submitted .rpt-stat-num { color: #198754; }

.rpt-dayoff {
    background: rgba(108, 117, 125, 0.06);
    border-color: rgba(108, 117, 125, 0.15) !important;
}
.rpt-dayoff .rpt-stat-num { color: #6c757d; }

.rpt-missing {
    background: rgba(220, 53, 69, 0.06);
    border-color: rgba(220, 53, 69, 0.15) !important;
}
.rpt-missing .rpt-stat-num { color: #dc3545; }

.csi-toggle-row {
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.csi-toggle-row:hover {
    border-color: #dee2e6;
    background: #fff !important;
}

.report-log-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
}

.report-log-date-header {
    font-weight: 600;
    color: #212529;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
}

.report-log-row {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    gap: 12px;
}

.report-log-row:last-child {
    border-bottom: none;
}

.schedule-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--border-color, #dee2e6);
    background: var(--bg-card, #fff);
    color: var(--text-primary, #333);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.toolbar-btn:hover {
    background: var(--bg-secondary, #f0f2f5);
    border-color: #c0c4c9;
}

.toolbar-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 77, 58, 0.15);
}

.toolbar-btn i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.toolbar-btn-primary {
    background: var(--primary-green, #1a4d3a);
    color: #fff;
    border-color: var(--primary-green, #1a4d3a);
}

.toolbar-btn-primary:hover {
    background: var(--primary-green-dark, #133d2e);
    border-color: var(--primary-green-dark, #133d2e);
    color: #fff;
}

.toolbar-btn-primary i {
    opacity: 1;
}

.toolbar-btn-icon {
    padding: 0.45rem 0.55rem;
    min-width: 34px;
    justify-content: center;
}

.toolbar-btn-icon i {
    opacity: 0.8;
    font-size: 0.85rem;
}

.schedule-toolbar .dropdown {
    position: relative;
}

.schedule-toolbar .dropdown-menu {
    border-radius: 10px;
    border: 1px solid var(--border-color, #e2e5e9);
    padding: 0.35rem;
    min-width: 220px;
    z-index: 1080;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.schedule-toolbar .dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.84rem;
    transition: background 0.15s;
}

.schedule-toolbar .dropdown-item:hover {
    background: var(--bg-secondary, #f0f2f5);
}

.schedule-toolbar .dropdown-item i {
    width: 18px;
    text-align: center;
}

.schedule-toolbar .dropdown-divider {
    margin: 0.25rem 0.5rem;
    opacity: 0.15;
}

@media (max-width: 767px) {
    .schedule-toolbar {
        justify-content: flex-start;
        margin-top: 0.75rem;
    }
}

.schedule-header-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.schedule-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.schedule-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ======================================== */

@media (max-width: 767.98px) {
    :root {
        --header-height: 56px;
    }

    html, body {
        overflow-x: clip;
        overflow-y: auto !important;
        width: 100%;
        height: auto !important;
    }

    body.has-schedule-page {
        overflow-x: auto !important;
        overflow-y: auto !important;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1100;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw;
        overflow: visible !important;
        height: auto !important;
    }

    .header {
        left: 0 !important;
        width: 100% !important;
        height: var(--header-height);
        padding: 0 12px;
    }

    .header-left {
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .header-left .sidebar-toggle {
        display: flex;
        width: 34px;
        height: 34px;
        font-size: 15px;
        flex-shrink: 0;
        background: var(--primary-green);
        color: white;
        border-radius: 8px;
    }

    .header-left .sidebar-toggle:hover {
        background: var(--secondary-green);
        color: white;
    }

    .header-title-group {
        min-width: 0;
        overflow: hidden;
    }

    .page-title {
        font-size: 15px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-breadcrumb {
        display: none;
    }

    .header-right {
        gap: 8px;
        flex-shrink: 0;
    }

    .header-icon-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
        border-radius: 8px;
    }

    .header-divider {
        display: none;
    }

    .header-right .user-info {
        display: none;
    }

    .user-profile {
        padding: 4px;
        gap: 0;
    }

    .profile-image {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .notification-badge {
        top: -3px;
        right: -3px;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        border-width: 1.5px;
    }

    .notification-dropdown {
        width: calc(100vw - 24px) !important;
        max-width: 360px;
        right: -40px !important;
    }

    .dashboard-content,
    .page-content {
        padding: 12px !important;
        padding-top: calc(var(--header-height) + 12px) !important;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .page-content.schedule-page {
        overflow: visible !important;
        -webkit-overflow-scrolling: touch;
        height: auto !important;
    }

    .main-content .page-content {
        padding-top: calc(var(--header-height) + 12px) !important;
    }

    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow-x: hidden;
    }

    .schedule-page .container-fluid {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
        margin-bottom: 16px;
    }

    .page-header h1 {
        font-size: 20px !important;
    }

    .page-header p {
        font-size: 13px;
    }

    .welcome-card {
        padding: 16px;
    }

    .getting-started-steps {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .metric-card {
        padding: 16px;
        margin-bottom: 8px;
    }

    .metric-card .metric-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .metric-card h3 {
        font-size: 20px;
    }

    .metric-card p {
        font-size: 12px;
    }

    .chart-card, .activity-card {
        margin-bottom: 12px;
    }

    .row > [class*="col-lg-"],
    .row > [class*="col-xl-"] {
        padding-left: 6px;
        padding-right: 6px;
    }

    .row.g-4 {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }

    .project-card {
        margin-bottom: 12px;
    }

    .project-image {
        height: 140px;
    }

    .project-card .card-body {
        padding: 12px;
    }

    .project-card .card-body h5 {
        font-size: 15px;
    }

    .table-responsive {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 0;
        padding-right: 0;
        width: calc(100% + 24px);
        border-radius: 0;
    }

    .table {
        font-size: 13px;
    }

    .table th, .table td {
        padding: 8px 10px;
        white-space: nowrap;
    }

    .card {
        border-radius: 10px;
    }

    .card-body {
        padding: 14px;
    }

    .card-header {
        padding: 12px 14px;
    }

    .btn {
        font-size: 13px;
        padding: 6px 12px;
    }

    .btn-sm {
        font-size: 12px;
        padding: 4px 8px;
    }

    .btn-group {
        flex-wrap: wrap;
        gap: 4px;
    }

    .modal-dialog {
        margin: 8px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-footer {
        padding: 12px 16px;
    }

    .modal-title {
        font-size: 16px;
    }

    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 12px;
    }

    .flash-messages {
        left: 12px;
        right: 12px;
        max-width: none;
        top: calc(var(--header-height) + 8px);
    }

    .flash-messages .alert {
        font-size: 13px;
        padding: 10px 14px;
    }

    h1 { font-size: 22px; }
    h2 { font-size: 18px; }
    h3 { font-size: 16px; }
    h4 { font-size: 15px; }
    h5 { font-size: 14px; }
    h6 { font-size: 13px; }

    .badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    .form-control, .form-select {
        font-size: 14px;
        padding: 8px 12px;
    }

    .form-label {
        font-size: 13px;
    }

    .form-check-label {
        font-size: 13px;
    }

    .alert {
        padding: 10px 14px;
        font-size: 13px;
    }

    .issues-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rpt-stat-card {
        padding: 10px 8px;
    }

    .report-log-row {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px;
    }

    .scheduled-task-card {
        padding: 14px;
    }

    .task-card-header {
        flex-direction: column;
        gap: 8px;
    }

    .task-dates {
        flex-direction: column;
        gap: 4px;
    }

    .kanban-board {
        min-height: auto;
    }

    .kanban-column-body {
        max-height: 50vh;
    }

    .filters-form .row > [class*="col-"] {
        margin-bottom: 8px;
    }

    .auth-card {
        padding: 24px 16px;
        margin: 12px;
    }

    .plan-card {
        margin-bottom: 16px;
    }

    .plan-card.popular {
        transform: none;
    }

    .payment-container {
        padding: 16px;
        margin: 12px;
    }

    .payment-methods {
        flex-direction: column;
    }

    .d-flex.gap-2 {
        gap: 6px !important;
    }

    .d-flex.gap-3 {
        gap: 8px !important;
    }

    .mb-4 {
        margin-bottom: 12px !important;
    }

    .p-4 {
        padding: 14px !important;
    }

    .schedule-page .table th,
    .schedule-page .table td {
        font-size: 12px;
        padding: 6px 8px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --header-height: 50px;
    }

    .page-title {
        font-size: 14px !important;
    }

    .dashboard-content,
    .page-content {
        padding: 8px !important;
        padding-top: calc(var(--header-height) + 8px) !important;
    }

    .main-content .page-content {
        padding-top: calc(var(--header-height) + 8px) !important;
    }

    .row > [class*="col-md-6"],
    .row > [class*="col-md-4"],
    .row > [class*="col-md-3"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .metric-card {
        padding: 12px;
    }

    .metric-card .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .project-image {
        height: 120px;
    }

    .btn-group {
        width: 100%;
    }

    .schedule-page .btn-group {
        width: auto !important;
    }

    .btn-group .btn {
        flex: 1;
    }

    .schedule-page .btn-group .btn {
        flex: none;
    }

    .topbar {
        flex-direction: column;
        height: auto;
        padding: 10px 12px;
        gap: 8px;
    }

    .topbar-left,
    .topbar-right {
        width: 100%;
    }
}

.budget-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 18px 20px;
    transition: box-shadow 0.2s;
    height: 100%;
}

.budget-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.budget-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.budget-card-body {
    flex: 1;
    min-width: 0;
}

.budget-card-label {
    font-size: 0.78rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    margin-bottom: 2px;
}

.budget-card-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.budget-card-value small {
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

@media (max-width: 576px) {
    .budget-card {
        padding: 14px 16px;
    }
    .budget-card-value {
        font-size: 1.05rem;
    }
}