.result-table td a.btn-info {
    text-decoration: none;
    color: white;
    background-color: #007bff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
}

.result-table td a.btn-info:hover {
    background-color: #0056b3;
}


.desc-link {
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.desc-link:hover {
    color: #007bff;
    text-decoration: underline;
}

.desc-link i {
    opacity: 0.6;
}

.desc-link:hover i {
    opacity: 1;
}


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            background-color: #f5f5f5;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Header Styles */
        .header {
            background: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            padding: 15px 0;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }

        .header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.system-title {
    font-size: 24px; /* Ukuran font default */
    color: #333;
    font-weight: 600;
}

.logo {
    height: 40px;
    width: auto;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2196f3;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Update responsive styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row; /* Pastikan arah flex tetap row */
        justify-content: space-between; /* Distribusi ruang antara judul dan login */
        align-items: center; /* Vertikal center */
    }
    
    .header-left, .header-right {
        display: flex;
        align-items: center;
        gap: 10px; /* Spasi antar elemen */
    }

    .header-left {
        flex: 1; /* Membuat header-left mengambil ruang yang tersedia */
    }

    .header-right {
        flex: 0; /* Header-right hanya mengambil ruang yang diperlukan */
    }

    .logo-section {
        gap: 10px;
    }

    .system-title {
        display: block; /* Tampilkan kembali judul sistem di mobile */
        font-size: 18px; /* Sesuaikan ukuran font jika diperlukan */
        color: #333; /* Sesuaikan warna jika diperlukan */
    }

    .logo {
        height: 30px;
    }

    .login-btn {
        padding: 6px 12px;
        font-size: 14px;
    }

    /* Styling khusus untuk container logo dan login */
    .logo-login-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .header-left, .header-right {
        display: flex;
        align-items: center;
        gap: 8px; /* Spasi antar elemen lebih kecil */
    }

    .header-left {
        flex: 1;
    }

    .header-right {
        flex: 0;
    }

    .system-title {
        font-size: 16px; /* Sesuaikan ukuran font untuk layar lebih kecil */
    }

    .login-btn {
        padding: 5px 10px;
        font-size: 14px;
    }
}

/* Tambahan styling untuk icon login */
.login-button {
    color: #2196f3;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.login-button:hover {
    color: #1976d2;
    transform: scale(1.1);
}

.login-button i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

        /* Main Content */
        .main-content {
            margin-top: 90px;
            flex: 1;
            padding: 20px;
        }

        .search-container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .search-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .search-group {
            display: flex;
            gap: 10px;
        }

        .search-input {
            flex: 1;
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .search-input:focus {
            border-color: #2196f3;
            outline: none;
            box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
        }

        .search-btn {
            background: #2196f3;
            color: white;
            border: none;
            padding: 0 25px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }

        .search-btn:hover {
            background: #1976d2;
        }

        .search-info {
            background: #e3f2fd;
            color: #1976d2;
            padding: 15px;
            border-radius: 4px;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header-content {
                padding: 0 15px;
            }

            .system-title {
                font-size: 18px;
            }

            .logo {
                height: 30px;
            }

            .login-btn {
                padding: 6px 12px;
                font-size: 14px;
            }

            .login-btn span {
                display: none;
            }

            .search-container {
                padding: 20px;
            }

            .search-group {
                flex-direction: column;
            }

            .search-btn {
                padding: 12px;
            }
        }

        @media (max-width: 480px) {
    .system-title {
        display: block;
        font-size: 16px; /* Sesuaikan ukuran font lebih kecil untuk layar yang lebih kecil */
    }
        }
    
    /* Styles untuk studi kasus */
.search-cases {
    display: grid;
    gap: 20px;
    margin-top: 15px;
}

.case-item {
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.case-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.case-icon {
    font-size: 20px;
}

.case-title {
    font-weight: 600;
    color: #333;
}

.case-content {
    padding: 15px;
}

.search-example {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
}

.example-label {
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.example-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.example-list li {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 4px;
    margin: 0 8px 8px 0;
    font-family: monospace;
    font-size: 14px;
}

.search-tips {
    background: #fff8e1;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tips-icon {
    font-size: 20px;
}

.tips-title {
    font-weight: 600;
    color: #f57f17;
}

.tips-list {
    padding-left: 25px;
}

.tips-list li {
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.tips-list li::marker {
    color: #f57f17;
}

/* Responsive Design */
@media screen and (min-width: 768px) {
    .search-cases {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-tips {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 767px) {
    .case-item {
        margin-bottom: 15px;
    }

    .example-list li {
        display: block;
        margin-bottom: 8px;
    }
}

/* Animations */
@keyframes tipHighlight {
    0% { background-color: #fff8e1; }
    50% { background-color: #ffecb3; }
    100% { background-color: #fff8e1; }
}

.search-tips {
    animation: tipHighlight 3s infinite;
}

/* Interactive elements */
.example-list li {
    cursor: pointer;
    transition: all 0.2s ease;
}

.example-list li:hover {
    background: #bbdefb;
    transform: scale(1.05);
}

/* Tooltip untuk contoh pencarian */
.example-list li {
    position: relative;
}

.example-list li:hover::after {
    content: 'Klik untuk mencoba';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 5px;
}

    
    /* Style untuk panduan baru */
.stats-section {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.item-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #1565c0;
}

.item-stats i {
    font-size: 20px;
}

.guide-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2196f3;
    margin-bottom: 15px;
}

.guide-section h3 i {
    font-size: 18px;
}

.not-found-guide {
    background: #fff3e0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.form-example {
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
    border: 1px dashed #ff9800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.new-item-symbol {
    font-size: 20px;
    color: #ff5722;
}

.note {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

.guide-section ul li, 
.guide-section ol li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 5px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .stats-section {
        padding: 12px;
    }

    .item-stats {
        font-size: 14px;
    }

    .form-example {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Tambahkan style untuk Select2 */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 5px 10px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    color: #444;
    font-size: 16px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.select2-dropdown {
    border: 2px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
}

.select2-results__option {
    padding: 8px 12px;
    font-size: 14px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #4a90e2;
}

.select2-container--default .select2-results__group {
    padding: 8px;
    font-weight: bold;
    background: #f8f9fa;
}

/* Responsive styles */
@media (max-width: 768px) {
    .select2-container--default .select2-selection--single {
        height: 36px;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 24px;
        font-size: 14px;
    }
}
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #f5f5f5;
            font-family: Arial, sans-serif;
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Header Styles */
        .header {
            background-color: #fff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            padding: 15px 0;
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            padding: 0 20px;
        }

        .logo {
            height: 50px;
            margin-right: 20px;
        }
        
        /* Tambahkan di bagian CSS */
.logo-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-link:active {
    opacity: 0.6;
}

/* Tambahkan cursor pointer pada logo */
.logo {
    cursor: pointer;
}

/* Pastikan link tidak memiliki outline saat di-focus */
.logo-link:focus {
    outline: none;
}

/* Optional: Tambahkan tooltip pada hover */
.logo-link {
    position: relative;
}

.logo-link::after {
    content: 'Kembali ke Halaman Utama';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.logo-link:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .logo-link::after {
        display: none; /* Hide tooltip on mobile */
    }
}


        .header-title {
            color: #333;
            font-size: 24px;
            font-weight: 500;
        }

        /* Main Container Styles */
        .main-content {
            margin-top: 100px;
            padding: 20px;
            flex: 1;
        }

        .search-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 25px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 0 15px rgba(0,0,0,0.1);
            position: relative;
            z-index: 999;
        }

        /* Search Input Styles */
        .search-input-container {
            margin-bottom: 20px;
            position: relative;
        }

        #search-input {
            width: 100%;
            padding: 12px 15px;
            font-size: 16px;
            border: 2px solid #ddd;
            border-radius: 6px;
            transition: border-color 0.3s ease;
        }

        #search-input:focus {
            outline: none;
            border-color: #4a90e2;
        }

        /* Autocomplete Styles */
        .ui-autocomplete {
            max-height: 300px;
            overflow-y: auto;
            overflow-x: hidden;
            position: absolute !important;
            width: calc(100% - 40px) !important;
            max-width: 1160px;
            margin: 0 auto;
            border: 1px solid #ddd;
            border-radius: 0 0 8px 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            background: #fff;
            z-index: 9999;
        }

        .search-result-item {
            display: grid;
            grid-template-columns: 1fr auto;
            padding: 10px 15px;
            border-bottom: 1px solid #eee;
            transition: background-color 0.2s;
        }

        .search-result-item:hover {
            background-color: #f8f9fa;
        }

        .search-result-item .item-details {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .search-result-item .item-code {
            font-size: 13px;
            color: #666;
            font-weight: 500;
        }

        .search-result-item .item-desc {
            font-size: 14px;
            color: #333;
        }

        .search-result-item .item-uom {
            font-size: 12px;
            color: #666;
            padding: 2px 8px;
            background: #f5f5f5;
            border-radius: 4px;
            align-self: flex-start;
        }

        /* Info and Message Styles */
        .search-info {
            color: #666;
            margin: 10px 0;
            padding: 10px;
            background-color: #f8f9fa;
            border-radius: 6px;
            font-size: 14px;
        }

        .error-message {
            color: #dc3545;
            padding: 10px;
            background-color: #fff3f3;
            border-radius: 6px;
            margin: 10px 0;
            display: none;
        }

        .search-result-info {
            margin: 10px 0;
            padding: 10px;
            background-color: #e9ecef;
            border-radius: 6px;
            font-size: 14px;
        }

        .loading {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: #fff;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            z-index: 1000;
            display: none;
        }

        /* Table Styles */
        .result-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            background-color: #fff;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .result-table th,
        .result-table td {
            padding: 12px 15px;
            text-align: left;
            border: 1px solid #dee2e6;
        }

        .result-table th {
            background-color: #f8f9fa;
            font-weight: 600;
            color: #495057;
        }

        /* Button Styles */
        .delete-btn {
            background-color: #dc3545;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .delete-btn:hover {
            background-color: #c82333;
        }

        /* Footer Styles */
        .footer {
            text-align: center;
            padding: 20px;
            background-color: #fff;
            border-top: 1px solid #eee;
            margin-top: auto;
        }

        /* Custom Scrollbar */
        .ui-autocomplete::-webkit-scrollbar {
            width: 6px;
        }

        .ui-autocomplete::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        .ui-autocomplete::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 3px;
        }

        .ui-autocomplete::-webkit-scrollbar-thumb:hover {
            background: #666;
        }

        /* Responsive Design */
        @media screen and (max-width: 992px) {
            .header-title {
                font-size: 20px;
            }

            .logo {
                height: 40px;
            }
        }

        @media screen and (max-width: 768px) {
            .main-content {
                margin-top: 80px;
            }

            .header-title {
                font-size: 18px;
            }

            .logo {
                height: 35px;
            }

            .search-container {
                padding: 15px;
            }

            .ui-autocomplete {
                width: calc(100% - 20px) !important;
                left: 10px !important;
                right: 10px !important;
            }

            .search-result-item {
                padding: 12px;
            }

            .result-table {
                display: block;
            }

            .result-table thead {
                display: none;
            }

            .result-table tbody {
                display: block;
                width: 100%;
            }

            .result-table tr {
                display: block;
                margin-bottom: 15px;
                border: 1px solid #ddd;
                border-radius: 8px;
                background: #fff;
            }

            .result-table td {
                display: block;
                padding: 10px;
                border: none;
                position: relative;
            }

            .result-table td:before {
                content: attr(data-label);
                font-weight: 600;
                color: #666;
                font-size: 12px;
                display: block;
                margin-bottom: 4px;
            }

            .result-table td:not(:last-child) {
                border-bottom: 1px solid #eee;
            }

            .result-table td:last-child {
                text-align: right;
                background: #f8f9fa;
                border-bottom-left-radius: 8px;
                border-bottom-right-radius: 8px;
            }

            .delete-btn {
                width: 100%;
                padding: 8px;
            }
        }

        @media screen and (max-width: 576px) {
            .header-content {
                flex-direction: column;
                text-align: center;
            }

            .logo {
                margin-right: 0;
                margin-bottom: 10px;
            }

            .main-content {
                margin-top: 120px;
            }

            .search-container {
                padding: 10px;
            }

            #search-input {
                font-size: 14px;
                padding: 10px;
            }
        }
        
        /* Guide Styles */
.guide-container {
    margin-bottom: 25px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.guide-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guide-header h2 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.toggle-guide {
    padding: 8px 16px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.toggle-guide:hover {
    background: #357abd;
}

.guide-content {
    padding: 20px;
    display: none;
}

.guide-section {
    margin-bottom: 20px;
}

.guide-section:last-child {
    margin-bottom: 0;
}

.guide-section h3 {
    font-size: 16px;
    color: #444;
    margin-bottom: 12px;
}

.guide-section ul,
.guide-section ol {
    padding-left: 25px;
    margin-bottom: 10px;
}

.guide-section li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.5;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .guide-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .toggle-guide {
        width: 100%;
    }

    .guide-section h3 {
        font-size: 15px;
    }

    .guide-section li {
        font-size: 14px;
    }
}

.highlight {
    background-color: #ffeb3b;
    padding: 2px;
    border-radius: 2px;
    font-weight: bold;
}

mark.highlight {
    background-color: #ffeb3b;
    padding: 2px;
    border-radius: 2px;
    font-weight: bold;
}

.search-result-item .item-desc span {
    background-color: yellow !important;
    font-weight: bold !important;
}


/* Style untuk panduan item ditemukan */
.found-guide {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    margin-top: 10px;
}

.form-example.success {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #4caf50;
    margin: 10px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.success-symbol {
    font-size: 24px;
    line-height: 1;
}

.format-container {
    flex: 1;
}

.format-line {
    display: flex;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.format-line:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.format-label {
    width: 100px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.format-value {
    flex: 1;
    color: #2196f3;
    font-family: monospace;
    font-size: 14px;
    font-weight: 500;
}

.important-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px;
    background: #fff3e0;
    border-radius: 6px;
    font-size: 14px;
    color: #f57c00;
}

.warning-symbol {
    font-size: 20px;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .form-example.success {
        flex-direction: column;
    }

    .format-line {
        flex-direction: column;
        gap: 4px;
    }

    .format-label {
        width: auto;
    }

    .format-value {
        padding-left: 10px;
    }

    .important-note {
        flex-direction: column;
        text-align: center;
    }
}

/* Animation untuk highlight pentingnya menulis lengkap */
@keyframes highlight {
    0% {
        background-color: #fff3e0;
    }
    50% {
        background-color: #ffe0b2;
    }
    100% {
        background-color: #fff3e0;
    }
}

.important-note {
    animation: highlight 2s infinite;
}

/* Hover effect untuk format example */
.form-example.success:hover {
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Copy indicator */
.format-value {
    position: relative;
    cursor: pointer;
}

.format-value:hover::after {
    content: '(contoh format)';
    position: absolute;
    right: 0;
    top: -20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

.login-button {
    color: #2196f3;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-button:hover {
    color: #1976d2;
    transform: scale(1.1);
}

.login-button i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}