:root {
    --primary-green: #4E6C50;
    --secondary-green: #89A894;
    --accent-green: #D0E1D4;
    --dark-text: #2C3333;
    --light-text: #6c757d;
    --bg-color: #F2F4F8;
    --card-bg: #FFFFFF;
    --sidebar-width: 250px;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-color);
    color: var(--dark-text);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: #f8f9fa;
    color: var(--dark-text);
    transition: all 0.3s;
    border-right: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sidebar-header {
    padding: 20px 0 40px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #3a3a3a;
}

.logo-shape {
    width: 30px;
    height: 30px;
    background: #4E6C50;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

#sidebar ul.components {
    padding: 0;
    list-style: none;
    flex-grow: 1;
}

#sidebar ul li {
    margin-bottom: 10px;
}

#sidebar ul li a {
    padding: 12px 15px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    color: #6c757d;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
}

#sidebar ul li a:hover {
    background: #e9ecef;
    color: var(--primary-green);
}

#sidebar ul li.active a {
    background: #E6EBE7;
    color: var(--primary-green);
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

#sidebar ul li a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.support-box {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.support-box h6 {
    font-weight: 700;
    font-size: 0.9rem;
}

.support-box p {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

#content {
    width: 100%;
    padding: 20px 30px;
    transition: all 0.3s;
}

.navbar-custom {
    padding: 10px 0 30px 0;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-toggle {
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--dark-text);
    font-size: 1.2rem;
    margin-right: 12px;
    padding: 4px 8px;
}

.page-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: #333;
}

.nav-icons .btn-icon {
    background: transparent;
    border: none;
    color: #666;
    margin-left: 10px;
    font-size: 1.1rem;
    position: relative;
    cursor: pointer;
}

.nav-icons .user-avatar {
    width: 35px;
    height: 35px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    color: #555;
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    height: auto;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.card-title-custom {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.trend-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.trend-up {
    color: #4E6C50;
}

.trend-down {
    color: #dc3545;
}

.card-primary {
    background: linear-gradient(135deg, #4E6C50 0%, #3a523e 100%);
    color: white;
}

.card-primary .card-title-custom, 
.card-primary .metric-value,
.card-primary .trend-indicator {
    color: white;
}

.card-primary .trend-indicator {
    opacity: 0.9;
}

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

.chart-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.time-filters .badge {
    background-color: #f1f1f1;
    color: #666;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-filters .badge.active {
    background-color: #4E6C50;
    color: white;
}

.table-custom {
    margin-bottom: 0;
    vertical-align: middle;
}

.table-custom th {
    font-weight: 500;
    color: #888;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 10px;
}

.table-custom td {
    font-size: 0.9rem;
    padding: 15px 10px;
    vertical-align: middle;
    color: #444;
    border-bottom: 1px solid #f8f9fa;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-success {
    background: #E6F4EA;
    color: #1E8E3E;
}

.status-active {
    background: #E8F0FE;
    color: #1967D2;
}

.status-error {
    background: #FCE8E6;
    color: #C5221F;
}

.status-pending {
    background: #FEF7E0;
    color: #EA8600;
}

.view-all {
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    font-weight: 600;
}

.btn-analyze {
    background-color: #4E6C50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-analyze:hover {
    background-color: #3d553f;
    transform: translateY(-1px);
    color: white;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 40px;
    margin: 20px 0;
    transition: all 0.3s;
}

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

.upload-area.dragover {
    border-color: var(--primary-green);
    background: #E6EBE7;
}

.slowest-activities-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slowest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.slowest-item .activity-name {
    font-weight: 500;
    color: #333;
}

.slowest-item .activity-time {
    color: var(--primary-green);
    font-weight: 600;
}

.gap-10 {
    gap: 10px;
}

.h-100 {
    height: 100%;
}

.opacity-50 {
    opacity: 0.5;
}

.text-muted {
    color: #6c757d !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.text-center {
    text-align: center !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.border-bottom {
    border-bottom: 1px solid rgba(0,0,0,.125) !important;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.alert {
    position: relative;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
        position: fixed;
        z-index: 999;
        height: 100vh;
    }
    #sidebar.active {
        margin-left: 0;
    }
    .nav-icons {
        display: none;
    }
}

.status-waiting {
    background: #FEF7E0;
    color: #B06A00;
}

.status-locked {
    background: #E8F0FE;
    color: #185ABC;
}

.status-processing {
    background: #EAF4EA;
    color: #2D6A2D;
}

.status-released,
.status-closed {
    background: #E6F4EA;
    color: #1E8E3E;
}

.summary-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.35;
}

.bottleneck-item {
    border: 1px solid #eef0f2;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #fff;
}


.dashboard-flow {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.layout-section {
    min-height: 0;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.dashboard-flow .dashboard-card {
    min-height: 0;
}

.dashboard-flow .table-responsive {
    overflow: auto;
}

@media (max-width: 992px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
}

.multi-layout {
    display: grid;
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 20px;
}

.multi-panel {
    position: sticky;
    top: 16px;
    align-self: start;
}

.multi-file-list,
.multi-activity-list {
    max-height: 230px;
    overflow: auto;
    border: 1px solid #eef0f2;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.multi-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed #edf0f3;
}

.multi-file-item:last-child {
    border-bottom: 0;
}

.multi-file-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.multi-activity-item {
    font-size: 0.9rem;
    padding: 3px 0;
}

.multi-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.multi-tab-btn {
    border: 1px solid #d7dde4;
    background: #fff;
    color: #4a5562;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.86rem;
    font-weight: 600;
}

.multi-tab-btn.active {
    background: #4E6C50;
    color: #fff;
    border-color: #4E6C50;
}

@media (max-width: 1100px) {
    .multi-layout {
        grid-template-columns: 1fr;
    }

    .multi-panel {
        position: static;
    }
}
