/* =====================================================
   TRACKING RESULT - MODERN TAILWIND INSPIRED UI
   BLKM MEDAN
===================================================== */

.tracking-result-page {
    --primary: #15803d;
    --primary-dark: #166534;
    --primary-light: #f0fdf4;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --surface: #ffffff;

    min-height: 100vh;
    padding: 48px 20px 72px;
    background: #f9fafb;
    color: var(--text-main);
    font-family: inherit;
}

.tracking-result-page * {
    box-sizing: border-box;
}

.tracking-result-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.tracking-result-page svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* =====================================================
   HEADER
===================================================== */

.result-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 28px;
}

.result-eyebrow {
    display: block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.result-topbar h2 {
    color: #111827;
    font-size: 26px;
    font-weight: 750;
    letter-spacing: -0.7px;
    line-height: 1.3;
    margin: 0 0 7px;
}

.result-topbar p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.result-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.2s ease;
}

.result-back-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

.result-back-button svg {
    width: 16px;
    height: 16px;
}

/* =====================================================
   ALERT
===================================================== */

.result-alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 40px 13px 15px;
    margin-bottom: 16px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.7;
}

.alert-success-custom {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-danger-custom {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-symbol {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.result-alert-close {
    position: absolute;
    top: 8px;
    right: 12px;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 21px;
    cursor: pointer;
}

/* =====================================================
   REGISTRATION BANNER
===================================================== */

.registration-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 25px;
    margin-bottom: 20px;
    background: #15803d;
    border: 1px solid #15803d;
    border-radius: 12px;
    color: #ffffff;
}

.registration-content {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.registration-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.14);
}

.registration-icon svg {
    width: 23px;
    height: 23px;
}

.registration-content span,
.registration-date span {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    margin-bottom: 5px;
}

.registration-content h3 {
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin: 0;
    overflow-wrap: anywhere;
}

.registration-date {
    flex-shrink: 0;
    text-align: right;
}

.registration-date strong {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

/* =====================================================
   CARD
===================================================== */

.result-card {
    padding: 24px;
    margin-bottom: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025);
}

.result-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.result-heading-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #dcfce7;
    border-radius: 9px;
    background: #f0fdf4;
    color: #15803d;
}

.result-heading-icon svg {
    width: 20px;
    height: 20px;
}

.result-heading-icon.icon-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.result-card-heading h4 {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin: 0 0 4px;
}

.result-card-heading p {
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.6;
    margin: 0;
}

/* =====================================================
   INFORMATION GRID
===================================================== */

.result-information-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
}

.information-item {
    min-width: 0;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.information-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.information-item span {
    display: block;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 6px;
}

.information-item strong {
    display: block;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.information-full {
    grid-column: 1 / -1;
}

/* =====================================================
   STATUS
===================================================== */

.status-overview {
    padding: 17px 18px;
    margin-bottom: 18px;
    background: #f9fafb;
    border: 1px solid #f0f1f3;
    border-radius: 9px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: currentColor;
}

.status-secondary {
    color: #475569;
    background: #f1f5f9;
}

.status-info {
    color: #0369a1;
    background: #e0f2fe;
}

.status-primary {
    color: #1d4ed8;
    background: #eff6ff;
}

.status-warning {
    color: #a16207;
    background: #fef3c7;
}

.status-danger {
    color: #b91c1c;
    background: #fee2e2;
}

.status-success {
    color: #15803d;
    background: #dcfce7;
}

.status-description {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.7;
    margin: 11px 0 0;
}

/* =====================================================
   NOTICE
===================================================== */

.result-notice {
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.75;
}

.result-notice p {
    margin: 0;
    white-space: pre-line;
}

.notice-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
}

.notice-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 10px;
}

.notice-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.notice-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.notice-info {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #075985;
}

.notice-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

/* =====================================================
   UPLOAD
===================================================== */

.action-card {
    border-left: 3px solid #15803d;
}

.upload-field {
    margin: 20px 0;
}

.upload-field label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
}

.upload-field input {
    width: 100%;
    min-height: 43px;
    padding: 9px 11px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #4b5563;
    font-size: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.upload-field input:hover {
    border-color: #9ca3af;
}

.upload-field input:focus {
    border-color: #16a34a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.10);
}

.upload-field small {
    display: block;
    margin-top: 7px;
    color: #9ca3af;
    font-size: 11px;
}

.field-error {
    margin-top: 7px;
    color: #dc2626;
    font-size: 11px;
}

/* =====================================================
   BUTTON
===================================================== */

.result-action-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-action-button svg {
    width: 16px;
    height: 16px;
}

.button-success {
    background: #15803d;
    color: #ffffff;
}

.button-success:hover {
    background: #166534;
    color: #ffffff;
}

.button-warning {
    background: #d97706;
    color: #ffffff;
}

.button-warning:hover {
    background: #b45309;
    color: #ffffff;
}

.button-primary {
    background: #2563eb;
    color: #ffffff;
}

.button-primary:hover {
    background: #1d4ed8;
    color: #ffffff;
}

/* =====================================================
   DOCUMENT LIST
===================================================== */

.document-list {
    display: flex;
    flex-direction: column;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 0;
    border-bottom: 1px solid #f3f4f6;
}

.document-item:first-child {
    padding-top: 0;
}

.document-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.document-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.document-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    background: #fef2f2;
    color: #dc2626;
}

.document-icon svg {
    width: 21px;
    height: 21px;
}

.document-details {
    min-width: 0;
}

.document-details strong {
    display: block;
    color: #374151;
    font-size: 12px;
    font-weight: 650;
    margin-bottom: 4px;
}

.document-details span {
    display: block;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.document-details small {
    display: block;
    color: #9ca3af;
    font-size: 10px;
    margin-top: 5px;
    line-height: 1.6;
}

.document-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.document-skm-actions {
    max-width: 240px;
}

.document-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
}

.status-neutral {
    color: #475569;
    background: #f1f5f9;
}

.document-button {
    min-height: 33px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 11px;
    border: none;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.document-button svg {
    width: 14px;
    height: 14px;
}

.empty-document {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 15px;
    color: #9ca3af;
    text-align: center;
}

.empty-document svg {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
}

.empty-document p {
    font-size: 12px;
    margin: 0;
}

/* =====================================================
   TIMELINE
===================================================== */

.result-timeline {
    padding-left: 5px;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 14px;
    padding-bottom: 25px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 5px;
    width: 2px;
    height: calc(100% - 12px);
    background: #e5e7eb;
}

.timeline-marker {
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    margin-top: 3px;
    flex-shrink: 0;
    border: 2px solid #16a34a;
    border-radius: 50%;
    background: #ffffff;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 5px;
}

.timeline-content > strong {
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}

.timeline-content > span {
    color: #9ca3af;
    font-size: 10px;
}

/* =====================================================
   CATATAN RIWAYAT
   Menggunakan struktur Blade yang sudah ada
===================================================== */

.timeline-content .bg-light {
    padding: 14px 16px !important;
    margin-top: 9px !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb;
    border-radius: 8px !important;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.8;
}

.timeline-content .bg-light strong {
    display: block;
    color: #374151;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 5px !important;
}

.timeline-content .bg-light div {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.empty-history {
    padding: 16px;
    color: #9ca3af;
    font-size: 12px;
    text-align: center;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    margin: 0;
}

/* =====================================================
   FOOTER
===================================================== */

.result-footer {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    padding: 16px;
    margin-top: 5px;
    color: #9ca3af;
    text-align: center;
}

.result-footer-icon {
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f0fdf4;
    color: #15803d;
    font-family: serif;
    font-size: 11px;
    font-weight: 700;
}

.result-footer p {
    margin: 0;
    font-size: 11px;
    line-height: 1.7;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 768px) {

    .tracking-result-page {
        padding: 35px 16px 55px;
    }

    .registration-banner {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .registration-date {
        padding-left: 58px;
        text-align: left;
    }

}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 576px) {

    .tracking-result-page {
        padding: 27px 13px 40px;
    }

    .result-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 22px;
    }

    .result-topbar h2 {
        font-size: 22px;
    }

    .result-topbar p {
        font-size: 12px;
    }

    .registration-banner {
        padding: 19px 16px;
        border-radius: 10px;
    }

    .registration-content {
        gap: 11px;
    }

    .registration-icon {
        width: 40px;
        height: 40px;
    }

    .registration-content h3 {
        font-size: 15px;
    }

    .registration-date {
        padding-left: 51px;
    }

    .result-card {
        padding: 19px 15px;
        margin-bottom: 14px;
        border-radius: 10px;
    }

    .result-card-heading {
        gap: 10px;
        margin-bottom: 18px;
    }

    .result-heading-icon {
        width: 36px;
        height: 36px;
    }

    .result-card-heading h4 {
        font-size: 14px;
    }

    .result-information-grid {
        grid-template-columns: 1fr;
    }

    .information-item,
    .information-item:nth-last-child(-n+2) {
        border-bottom: 1px solid #f3f4f6;
    }

    .information-item:last-child {
        border-bottom: none;
    }

    .information-full {
        grid-column: auto;
    }

    .information-item {
        padding: 12px 0;
    }

    .document-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .document-actions {
        width: 100%;
        align-items: flex-start;
        padding-left: 52px;
    }

    .document-skm-actions {
        max-width: 100%;
    }

    .document-button {
        min-height: 36px;
    }

    .result-action-button {
        width: 100%;
        min-height: 43px;
    }

    .status-overview {
        padding: 14px;
    }

    .result-notice {
        padding: 13px;
    }

    .timeline-item {
        gap: 11px;
        padding-bottom: 22px;
    }

    .timeline-content .bg-light {
        padding: 12px 13px !important;
    }

}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

    .tracking-result-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .result-card {
        padding: 16px 12px;
    }

    .registration-content h3 {
        font-size: 13px;
    }

    .result-topbar h2 {
        font-size: 20px;
    }

}