:root {
    --untag-red: #D22027;
    --untag-red-dark: #A9141A;
    --untag-red-light: #FDF2F2;
    --untag-red-border: #F8D7DA;
    --untag-dark: #1A1A1A;
    --untag-gray: #6C757D;
    --untag-light: #F4F6F9;
    --untag-card-bg: #FFFFFF;
    --sidebar-width: 260px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--untag-light);
    color: #2D3748;
    min-height: 100vh;
}

/* Primary Color Overrides */
.text-primary, .text-untag {
    color: var(--untag-red) !important;
}

.bg-primary, .bg-untag {
    background-color: var(--untag-red) !important;
    color: #ffffff;
}

.bg-untag-dark {
    background-color: var(--untag-dark) !important;
    color: #ffffff;
}

.btn-primary, .btn-untag {
    background-color: var(--untag-red);
    border-color: var(--untag-red);
    color: #ffffff;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover, .btn-primary:focus, .btn-untag:hover {
    background-color: var(--untag-red-dark);
    border-color: var(--untag-red-dark);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(210, 32, 39, 0.25);
}

.btn-outline-primary, .btn-outline-untag {
    color: var(--untag-red);
    border-color: var(--untag-red);
    font-weight: 500;
}

.btn-outline-primary:hover, .btn-outline-untag:hover {
    background-color: var(--untag-red);
    border-color: var(--untag-red);
    color: #ffffff;
}

/* Form Controls Clean Styling */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #D9DEE3;
    padding: 0.6rem 0.85rem;
    font-size: 0.92rem;
    color: #2D3748;
    background-color: #FFFFFF;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--untag-red);
    box-shadow: 0 0 0 0.2rem rgba(210, 32, 39, 0.15);
}

.form-label {
    margin-bottom: 0.4rem;
    color: #4A5568;
}

/* Form Section Styling */
.form-section-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #EDF2F7;
}

.section-badge-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--untag-red);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.party-box-untag {
    border: 1px solid #FED7D7;
    background-color: #FFF5F5;
    border-radius: 10px;
    padding: 1.25rem;
}

.party-box-mitra {
    border: 1px solid #E2E8F0;
    background-color: #F8FAFC;
    border-radius: 10px;
    padding: 1.25rem;
}

/* Cards & Components */
.card {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background-color: var(--untag-card-bg);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid #E2E8F0;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.stat-card {
    border-left: 4px solid var(--untag-red);
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Sidebar Styling */
#sidebar-wrapper {
    min-height: 100vh;
    width: var(--sidebar-width);
    background-color: var(--untag-dark);
    color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
}

#sidebar-wrapper .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.75rem 1.5rem;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

#sidebar-wrapper .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
    border-left-color: var(--untag-red);
}

#sidebar-wrapper .nav-link.active {
    color: #ffffff;
    background-color: rgba(210, 32, 39, 0.15);
    border-left-color: var(--untag-red);
    font-weight: 600;
}

#sidebar-wrapper .nav-link i {
    font-size: 1.15rem;
}

.sidebar-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    padding: 1.25rem 1.5rem 0.5rem;
    font-weight: 700;
}

/* Page Content Wrapper */
#page-content-wrapper {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Navbar */
.top-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #E2E8F0;
    padding: 0.85rem 1.75rem;
}

/* Badges */
.badge-aktif {
    background-color: #198754 !important;
    color: #ffffff;
}

.badge-berakhir {
    background-color: #DC3545 !important;
    color: #ffffff;
}

.badge-expiring {
    background-color: #FFC107 !important;
    color: #212529;
    font-weight: 600;
}

.badge-mou {
    background-color: #0D6EFD;
    color: #ffffff;
}

.badge-moa {
    background-color: #6F42C1;
    color: #ffffff;
}

.badge-ia {
    background-color: #0DCAF0;
    color: #212529;
}

/* Table styling */
.table-custom {
    vertical-align: middle;
}

.table-custom th {
    font-weight: 600;
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background-color: #F8FAFC;
    color: #4A5568;
    border-top: none;
    padding: 0.85rem 1rem;
}

.table-custom td {
    padding: 0.85rem 1rem;
}

/* Select2 UNTAG Styling */
.select2-container--bootstrap-5 .select2-selection {
    border-radius: 8px;
    min-height: 42px;
    padding-top: 4px;
    border-color: #D9DEE3;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background-color: var(--untag-red);
}

/* Public Landing Styles */
.hero-banner {
    background: linear-gradient(135deg, var(--untag-dark) 0%, #2A080A 50%, var(--untag-red-dark) 100%);
    color: #ffffff;
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 80% 20%, rgba(210, 32, 39, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.metric-pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    color: #ffffff;
}

/* Executive Dashboard Enhancements */
.dashboard-stat-card {
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #EAEFF5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
}

.dashboard-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.card-executive {
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #EAEFF5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.card-executive .card-header {
    background-color: transparent;
    border-bottom: 1px solid #F1F4F8;
    padding: 1.1rem 1.4rem;
}

.card-executive .card-body {
    padding: 1.4rem;
}

.country-pill-item {
    background-color: #F8FAFC;
    border: 1px solid #EDF2F7;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: background-color 0.15s ease;
}

.country-pill-item:hover {
    background-color: #F1F5F9;
}

.timeline-feed-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid #E2E8F0;
    padding-bottom: 1.25rem;
}

.timeline-feed-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.timeline-feed-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--untag-red);
    border: 2px solid #ffffff;
}

/* Document Viewer Nav Tabs */
.doc-viewer-pills .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.doc-viewer-pills .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.18);
}

.doc-viewer-pills .nav-link.active {
    background-color: var(--untag-red) !important;
    color: #ffffff !important;
    border-color: var(--untag-red) !important;
    box-shadow: 0 2px 6px rgba(210, 32, 39, 0.4);
}

/* Responsive sidebar */
@media (max-width: 991.98px) {
    #sidebar-wrapper {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    #sidebar-wrapper.toggled {
        margin-left: 0;
    }
    #page-content-wrapper {
        margin-left: 0;
        width: 100%;
    }
}


