/* 
 * Universitas Terbuka - Formal Design System
 * Professional academic design with UT blue and yellow
 * Clean, structured, formal layout for educational platform
 */

/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* myUT Color System */
:root {
    --ut-primary: #121212;
    --ut-primary-dark: #0961a8;
    --ut-secondary: #ffee00;
    --ut-light-blue: #e6f4fb;
    --ut-white: #ffffff;
    --ut-gray-100: #f8f9fa;
    --ut-gray-200: #e9ecef;
    --ut-gray-300: #dee2e6;
    --ut-gray-700: #495057;
    --ut-gray-900: #212529;
    --ut-green: #28a745;
    --ut-orange: #fd7e14;
    --ut-red: #dc3545;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    --spacing-4xl: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #f5f9fc 0%, #e8f2f8 100%);
    color: #2c3e50;
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Subtle animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from { 
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        max-height: 2000px;
        transform: translateY(0);
    }
}

@keyframes appleGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Vue Transition - Slide Fade */
.slide-fade-enter-active {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-fade-leave-active {
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) reverse;
}

/* Container - Full Width */
.container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    background: transparent;
    padding: 0;
}

/* Navigation Bar - UT Formal Style */
nav {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--ut-primary);
    box-shadow: 0 2px 8px rgba(11, 122, 209, 0.2);
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

nav a {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 20px 32px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: var(--ut-secondary);
}

/* Hero Header - UT Professional */
header {
    text-align: center;
    padding: 60px 80px 50px;
    background: white;
    border-bottom: 5px solid var(--ut-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

header h1 {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    margin: 0 auto 16px;
    max-width: 100%;
    color: var(--ut-primary);
    text-shadow: 1px 1px 2px rgba(11, 122, 209, 0.1);
}

header p {
    font-size: clamp(17px, 3vw, 20px);
    color: #5a6c7d;
    margin-top: 12px;
    line-height: 1.6;
    letter-spacing: 0;
    font-weight: 400;
}

/* Button - UT Formal Style */
.btn {
    display: inline-block;
    background: var(--ut-primary);
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--ut-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--ut-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 122, 209, 0.4);
}

.btn-small {
    padding: 8px 18px;
    font-size: 13px;
}

.btn:disabled,
.btn:disabled:hover {
    background: #d1e3f0;
    color: #8fa8bb;
    border-color: #d1e3f0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Menu Cards - UT Formal Cards */
.menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    padding: 60px 80px;
    max-width: 100%;
    margin: 0;
}

.menu-card {
    background: white;
    border: 2px solid var(--ut-primary);
    border-radius: 12px;
    padding: 40px 32px 36px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(11, 122, 209, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-height: 340px;
}

.menu-card:hover {
    transform: translateY(-6px);
    border-color: var(--ut-secondary);
    box-shadow: 0 8px 24px rgba(11, 122, 209, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.icon {
    font-size: 56px;
    color: var(--ut-primary);
    display: inline-block;
    transition: all 0.3s ease;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ut-light-blue) 0%, #cfe7f7 100%);
    border-radius: 50%;
    border: 3px solid var(--ut-primary);
}

.icon i {
    color: var(--ut-primary);
}

.menu-card:hover .icon {
    transform: rotate(5deg) scale(1.1);
    background: var(--ut-secondary);
    border-color: var(--ut-secondary);
}

.menu-card:hover .icon i {
    color: white;
}

.menu-card h3 {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--ut-primary);
    text-transform: uppercase;
}

.menu-card p {
    font-size: 15px;
    color: #5a6c7d;
    line-height: 1.6;
    letter-spacing: 0;
    max-width: 280px;
}

.menu-card .btn {
    margin-top: auto;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    background: var(--ut-primary);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    line-height: 1;
    border: 2px solid var(--ut-primary);
    cursor: pointer;
    min-width: 160px;
    text-transform: uppercase;
}

.menu-card .btn:hover {
    background: var(--ut-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 122, 209, 0.4);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    border: 3px solid var(--ut-primary);
    border-top: 5px solid var(--ut-secondary);
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(11, 122, 209, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 140px;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(11, 122, 209, 0.25);
    border-top-width: 6px;
}

.stat-value {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    color: var(--ut-primary);
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(11, 122, 209, 0.1);
}

.stat-card.warning .stat-value {
    color: var(--ut-orange);
}

.stat-card.info .stat-value {
    color: var(--ut-primary);
}

.stat-label {
    font-size: 14px;
    color: #5a6c7d;
    letter-spacing: 0.3px;
    line-height: 1.4;
    font-weight: 400;
}

/* Section Styles */
.filter-section,
.stats-section,
.table-section,
.update-section,
.search-section,
.watcher-section {
    background: white;
    border: 2px solid var(--ut-primary);
    border-left: 6px solid var(--ut-secondary);
    border-radius: 0;
    padding: 40px 80px;
    margin: 0;
    max-width: 100%;
    box-shadow: 0 2px 6px rgba(11, 122, 209, 0.08);
    border-right: none;
}

.filter-section h2,
.stats-section h2,
.table-section h2,
.update-section h2,
.search-section h2,
.watcher-section h2 {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--ut-primary);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 4px solid var(--ut-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

/* Form Elements - Apple Style */
.filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.filter-item,
.form-group {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.filter-item label,
.form-group label {
    font-size: 14px;
    color: var(--ut-primary);
    margin-bottom: 8px;
    letter-spacing: 0;
    font-weight: 600;
    text-transform: uppercase;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafb;
    border: 2px solid #d1e3f0;
    border-radius: 6px;
    color: #2c3e50;
    font-size: 15px;
    font-family: inherit;
    letter-spacing: 0;
    transition: all 0.3s ease;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230b7ad1' d='M10.59.58a1 1 0 0 1 0 1.41L6.71 5.87a1 1 0 0 1-1.41 0L1.41 1.99A1 1 0 0 1 2.82.58l2.99 2.98L9.82.58a1 1 0 0 1 1.41 0Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    background-color: #f8fafb;
}

select option {
    background: white;
    color: #2c3e50;
}

select option:checked,
select option:hover {
    background: var(--ut-light-blue);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--ut-primary);
    box-shadow: 0 0 0 3px rgba(11, 122, 209, 0.2);
    background: white;
}

/* Checkbox Styling - UT Formal */
.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding: 12px 16px;
    background: #f0f8ff;
    border: 2px solid var(--ut-primary);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: #e6f4fb;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--ut-primary);
    margin: 0;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 15px;
    color: var(--ut-primary);
    line-height: 1.5;
    letter-spacing: 0;
    font-weight: 600;
}

/* Table Wrapper for Responsive */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 24px;
}

/* Table Styles - UT Formal Tables */
table {
    width: 100%;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0;
    background: white;
    border: 2px solid var(--ut-primary);
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

thead {
    background: linear-gradient(135deg, var(--ut-primary) 0%, #0961a8 100%);
    border-bottom: 4px solid var(--ut-secondary);
}

thead th {
    padding: 18px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid #d1e3f0;
    transition: all 0.3s ease;
}

tbody tr:hover {
    background: #f0f8ff;
    transform: scale(1.002);
}

tbody tr.low-stock {
    background: #fff8f0;
}

tbody tr.critical-stock {
    background: #fff0f0;
}

tbody tr.low-stock:hover {
    background: #ffe8d6;
}

tbody tr.critical-stock:hover {
    background: #ffe0e0;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td {
    padding: 20px;
    font-size: 15px;
    color: #2c3e50;
    letter-spacing: 0;
    line-height: 1.6;
    vertical-align: middle;
}

tbody td:first-child {
    font-weight: 700;
    color: var(--ut-primary);
}

tbody td strong {
    font-weight: 700;
    color: var(--ut-primary);
    font-size: 14px;
}

/* Badge Styles - UT Formal */
.badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: #f0f8ff;
    color: var(--ut-primary);
    border: 2px solid var(--ut-primary);
    text-transform: uppercase;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(11, 122, 209, 0.3);
}

.badge.available {
    background: #f0fff4;
    color: var(--ut-green);
    border: 2px solid var(--ut-green);
}

.badge.low {
    background: #fff8f0;
    color: var(--ut-orange);
    border: 2px solid var(--ut-orange);
}

.badge.critical {
    background: #fff0f0;
    color: var(--ut-red);
    border: 2px solid var(--ut-red);
    animation: appleGlow 2s ease-in-out infinite;
}

.qty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    padding: 10px 16px;
    background: #f0f8ff;
    color: var(--ut-primary);
    border: 2px solid var(--ut-primary);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
}

.qty-badge.safe {
    background: #f0fff4;
    color: var(--ut-green);
    border-color: var(--ut-green);
}

.qty-badge.warning {
    background: #fff8f0;
    color: var(--ut-orange);
    border-color: var(--ut-orange);
}

.qty-badge.critical {
    background: #fff0f0;
    color: var(--ut-red);
    border-color: var(--ut-red);
    animation: appleGlow 2s ease-in-out infinite;
}

/* Timeline - UT Formal Style */
.timeline {
    position: relative;
    padding-left: 45px;
    margin-top: 32px;
}

.timeline-card {
    position: relative;
    padding: 24px;
    margin-bottom: 24px;
    background: white;
    border: 2px solid var(--ut-primary);
    border-left: 5px solid var(--ut-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(11, 122, 209, 0.1);
}

.timeline-card:hover {
    background: #f0f8ff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(11, 122, 209, 0.2);
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: -45px;
    top: 50%;
    width: 14px;
    height: 14px;
    background: var(--ut-secondary);
    border: 3px solid var(--ut-primary);
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline::after {
    content: '';
    position: absolute;
    left: -34px;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--ut-primary);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e9f1;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 16px;
    border: 1px solid #d1e3f0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ut-primary) 0%, var(--ut-secondary) 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

/* Alert Boxes */
.alert,
.info-box,
.error-box {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 12px;
    margin: var(--spacing-lg) 0;
    font-size: 17px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.alert i,
.info-box i,
.error-box i {
    font-size: 20px;
    flex-shrink: 0;
}

.alert {
    background: rgba(255, 204, 0, 0.15);
    color: #ffd60a;
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.info-box {
    background: #f0f8ff;
    color: var(--ut-primary);
    border: 2px solid var(--ut-primary);
}

.error-box {
    background: #fff0f0;
    color: var(--ut-red);
    border: 2px solid var(--ut-red);
}

.alert-success {
    background: #f0fff4;
    color: var(--ut-green);
    border: 2px solid var(--ut-green);
}

.alert-error {
    background: #fff0f0;
    color: var(--ut-red);
    border: 2px solid var(--ut-red);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 32px;
    color: #5a6c7d;
}

.empty-state .icon {
    font-size: 80px;
    opacity: 0.5;
    margin-bottom: var(--spacing-lg);
}

.empty-state h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--ut-primary);
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
    line-height: 1.6;
}

/* Footer - UT Formal */
footer {
    background: var(--ut-primary);
    color: white;
    text-align: center;
    padding: 32px 24px;
    margin-top: 60px;
    border-top: 4px solid var(--ut-secondary);
}

footer p {
    font-size: 14px;
    letter-spacing: 0.3px;
    line-height: 1.6;
    font-weight: 500;
}

/* Scrollbar - Apple Style */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(134, 134, 139, 0.4);
    border-radius: 10px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(134, 134, 139, 0.6);
}

/* Focus Visible - Accessibility */
:focus-visible {
    outline: 3px solid var(--ut-secondary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 40px 24px 36px;
    }
    
    header h1 {
        font-size: 32px;
    }
    
    header p {
        font-size: 16px;
    }
    
    .menu,
    .filter-section,
    .stats-section,
    .table-section,
    .update-section,
    .search-section,
    .watcher-section,
    .available-do-section,
    .do-detail {
        padding: 32px 24px;
    }
    
    .menu-card {
        padding: 32px 24px;
    }
    
    .menu-card h3 {
        font-size: 24px;
    }
    
    nav {
        gap: 0;
        padding: 0;
    }
    
    nav a {
        padding: 20px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 32px 20px;
    }
    
    header h1 {
        font-size: 28px;
    }
    
    header p {
        font-size: 15px;
    }
    
    .menu,
    .filter-section,
    .stats-section,
    .table-section,
    .update-section,
    .search-section,
    .watcher-section,
    .available-do-section,
    .do-detail {
        padding: 24px 16px;
        border-left-width: 4px;
    }
    
    .stat-value {
        font-size: 42px;
    }
    
    table {
        font-size: 13px;
    }
    
    thead th {
        padding: 14px 12px;
        font-size: 12px;
    }
    
    tbody td {
        padding: 16px 12px;
        font-size: 13px;
    }
    
    nav a {
        padding: 20px 12px;
        font-size: 12px;
    }
    
    tbody td,
    thead th {
        padding: 12px 16px;
    }
}

/* Reduce Motion - Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Additional Sections */
.table-section h2 {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--ut-primary);
    margin-bottom: 32px;
}

/* Available DO Section - Moved to top */
.available-do-section {
    background: white;
    border: 2px solid var(--ut-primary);
    border-left: 6px solid var(--ut-secondary);
    border-radius: 0;
    padding: 40px 80px;
    margin: 0;
    max-width: 100%;
    box-shadow: 0 2px 6px rgba(11, 122, 209, 0.08);
    border-right: none;
}

.available-do-section h2 {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.5px;
    color: var(--ut-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--ut-secondary);
    text-transform: uppercase;
}

/* DO Detail Section (Search Result) */
.do-detail {
    background: white;
    border: 2px solid var(--ut-primary);
    border-left: 6px solid var(--ut-secondary);
    border-radius: 0;
    padding: 40px 80px;
    margin: 28px 0;
    animation: slideUp 0.6s ease-out;
}

.do-detail h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ut-primary);
    margin-bottom: 24px;
    letter-spacing: 0;
}

/* DO Detail Inline (Accordion) */
.do-detail-inline {
    padding: 24px;
    background: #f0f8ff;
    animation: slideDown 0.3s ease-out;
    border-top: 2px solid var(--ut-secondary);
}

.do-detail-inline .info-card {
    margin: 16px 0;
}

.do-detail-inline .info-card:first-child {
    margin-top: 0;
}

.do-detail-inline .info-card h4 {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.do-detail-inline .info-card h4 i {
    font-size: 15px;
    color: var(--ut-primary);
}

.info-card {
    background: white;
    border: 2px solid #d1e3f0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.info-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ut-primary);
    margin-bottom: 16px;
    letter-spacing: 0;
}

.detail-table {
    width: 100%;
    border: none;
    margin-top: 0;
}

.detail-table td {
    padding: 10px 0;
    border-bottom: 1px solid #e0e9f1;
    font-size: 15px;
}

.detail-table td:first-child {
    color: #5a6c7d;
    width: 40%;
    font-weight: 600;
}

/* DO Item List - Accordion Style */
.do-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.do-item-wrapper {
    background: white;
    border: 2px solid var(--ut-primary);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.do-item {
    padding: 18px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.do-item:hover {
    background: #f0f8ff;
}

.do-item.active {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f4fb 100%);
    border-bottom: 2px solid var(--ut-secondary);
}

.do-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.do-info {
    flex: 1;
}

.do-info strong {
    color: var(--ut-primary);
    font-weight: 700;
    font-size: 16px;
}

.do-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.do-actions i {
    color: #8fa8bb;
    font-size: 14px;
    transition: all 0.3s ease;
}

.do-item.active .do-actions i {
    color: var(--ut-secondary);
    transform: rotate(180deg);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-transform: uppercase;
}

.status-badge i {
    font-size: 14px;
}

.status-badge.critical {
    background: #fff0f0;
    color: var(--ut-red);
    border: 2px solid var(--ut-red);
}

.status-badge.warning {
    background: #fff8f0;
    color: var(--ut-orange);
    border: 2px solid var(--ut-orange);
}

.status-badge.safe {
    background: #f0fff4;
    color: var(--ut-green);
    border: 2px solid var(--ut-green);
}

.status-badge.status-selesai {
    background: #f0fff4;
    color: var(--ut-green);
    border: 2px solid var(--ut-green);
}

.status-badge.status-dalam-pengiriman {
    background: #f0f8ff;
    color: var(--ut-primary);
    border: 2px solid var(--ut-primary);
}

.status-badge.status-dikemas {
    background: #fff8f0;
    color: var(--ut-orange);
    border: 2px solid var(--ut-orange);
}

.status-badge.status-pending {
    background: #f8f9fa;
    color: #5a6c7d;
    border: 2px solid #d1e3f0;
}

/* Watcher Info */
.watcher-info {
    background: #f0f8ff;
    border: 2px solid var(--ut-primary);
    border-left: 5px solid var(--ut-secondary);
    border-radius: 8px;
    padding: 24px;
}

.watcher-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.watcher-info li {
    padding: 8px 0;
    color: #5a6c7d;
    font-size: 15px;
    line-height: 1.6;
}

.watcher-info strong {
    color: var(--ut-primary);
    font-weight: 700;
}

.watcher-info em {
    color: var(--ut-secondary);
    font-style: normal;
    font-weight: 600;
}

.warning-text {
    color: var(--ut-orange) !important;
}

/* Form Grid */
.form-grid,
.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 0;
}

.form-item,
.filter-item {
    display: flex;
    flex-direction: column;
}

/* Checkbox Filter - Separated Below */
.checkbox-filter {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #d1e3f0;
}

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

/* Form Actions */
.form-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.form-actions button {
    flex: 1;
}

.btn-secondary {
    background: white;
    color: var(--ut-primary);
    border: 2px solid var(--ut-primary);
}

.btn-secondary:hover {
    background: #f0f8ff;
    border-color: var(--ut-primary-dark);
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
}

/* Search Form */
.search-form {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-end;
}

.search-form input {
    flex: 1;
}

.search-form button {
    flex-shrink: 0;
}

/* Utility Classes */
.warning-text {
    color: var(--ut-orange);
}

.success-text {
    color: var(--ut-green);
}

.error-text {
    color: var(--ut-red);
}

/* Timeline Enhancements for DO Tracking */
.timeline h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ut-primary);
    margin-bottom: 16px;
}

.timeline-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ut-primary);
    margin-bottom: 8px;
}

.timeline-card p {
    color: #5a6c7d;
    font-size: 14px;
    line-height: 1.6;
}

.timeline-card small {
    color: #8fa8bb;
    font-size: 13px;
}

/* Estimation Section */
.estimation-content {
    background: #f0f8ff;
    border: 2px solid #d1e3f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.estimation-content p {
    font-size: 15px;
    color: #2c3e50;
    line-height: 1.6;
    margin: 8px 0;
}

.estimation-content strong {
    color: var(--ut-primary);
    font-weight: 700;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    nav,
    .btn,
    footer {
        display: none;
    }
    
    .container {
        max-width: 100%;
    }
    
    * {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
