/* ============================================
   Djuniors - Tracking Page Styles
   ============================================ */

.tracking-page {
    min-height: 100vh;
    padding: 100px 1.5rem 4rem;
    background: linear-gradient(135deg, #FFF8E7 0%, #E8F4FD 100%);
}

.tracking-hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.tracking-hero h1 {
    font-size: 2.2rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.tracking-hero p {
    color: #64748b;
    font-size: 1rem;
}

/* Search Box */
.tracking-search-card {
    max-width: 680px;
    margin: 0 auto 2.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 2px solid #e2e8f0;
}

.search-input-group {
    display: flex;
    gap: 0.75rem;
}

.search-input-group input {
    flex: 1;
    padding: 0.9rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    color: var(--dark-text);
    transition: all 0.2s;
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.12);
}

.btn-search {
    padding: 0.9rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-blue), #3b82f6);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
}

.search-hints {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
}

.hint-badge {
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-family: monospace;
    color: #334155;
}

/* Tracking Result Container */
.tracking-result-card {
    max-width: 820px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    animation: fadeIn 0.3s ease;
}

/* Initial / Empty / Loading State */
.tracking-placeholder-card {
    max-width: 680px;
    margin: 0 auto;
    background: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.placeholder-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.tracking-placeholder-card h3 {
    font-size: 1.35rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.tracking-placeholder-card p {
    color: #64748b;
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

/* Spinner */
.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Single Result View Header */
.result-header {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    padding: 1.75rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.result-reg-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.result-reg-label {
    font-size: 0.775rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-reg-value {
    font-family: 'Baloo 2', cursive;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-badge.pending {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.status-badge.confirmed,
.status-badge.paid {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.status-badge.unpaid {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Tracking Timeline Stepper */
.tracking-stepper-box {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    background: white;
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    position: relative;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.timeline-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    border: 2px solid transparent;
    z-index: 2;
    transition: all 0.3s;
}

.timeline-step.active .timeline-step-icon {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 14px rgba(74, 144, 217, 0.4);
    transform: scale(1.08);
}

.timeline-step.completed .timeline-step-icon {
    background: var(--fresh-green);
    color: white;
}

.timeline-step-title {
    font-size: 0.775rem;
    font-weight: 700;
    color: #64748b;
}

.timeline-step.active .timeline-step-title {
    color: var(--primary-blue);
}

.timeline-step.completed .timeline-step-title {
    color: var(--fresh-green);
}

/* Details Section */
.result-content-body {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.detail-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
}

.detail-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.detail-item {
    margin-bottom: 0.6rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.15rem;
}

.detail-item-value {
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--dark-text);
}

.child-tag {
    display: inline-block;
    background: white;
    border: 1px solid #cbd5e1;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.825rem;
    font-weight: 700;
    color: #334155;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
}

/* Payment & Proof Section */
.payment-proof-box {
    background: #fffdf5;
    border: 2px solid #fed7aa;
    border-radius: 18px;
    padding: 1.5rem;
}

.payment-proof-box.paid {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.payment-proof-box.pending {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.proof-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.proof-header h4 {
    font-size: 1.1rem;
    color: var(--dark-text);
}

/* Upload Form */
.upload-form-group {
    margin-bottom: 1rem;
}

.upload-form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--dark-text);
    margin-bottom: 0.35rem;
}

.file-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 1.5rem 1rem;
    text-align: center;
    background: white;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}

.file-dropzone:hover {
    border-color: var(--primary-blue);
    background: #f8fafc;
}

.file-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropzone-icon {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
}

.dropzone-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
}

.dropzone-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

.proof-preview-container {
    margin-top: 1rem;
    text-align: center;
}

.proof-preview-img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn-submit-proof {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--fresh-green), #16a34a);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.btn-submit-proof:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4);
}

/* Action Bar in Result Card */
.result-action-bar {
    background: #f8fafc;
    padding: 1.25rem 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-wa-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    background: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-wa-contact:hover {
    background: #1ebc59;
}

.btn-print {
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-print:hover {
    background: #f1f5f9;
}

/* Multi Result List (Phone search) */
.multi-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reg-card-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s;
    cursor: pointer;
}

.reg-card-item:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.reg-card-info h4 {
    font-size: 1.15rem;
    color: var(--dark-text);
    margin-bottom: 0.25rem;
}

.reg-card-sub {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.btn-view-detail {
    padding: 0.6rem 1.1rem;
    background: rgba(74, 144, 217, 0.12);
    color: var(--primary-blue);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 700px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .timeline-steps {
        gap: 0.25rem;
    }

    .timeline-step-title {
        font-size: 0.675rem;
    }

    .timeline-step-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .search-input-group {
        flex-direction: column;
    }

    .btn-search {
        justify-content: center;
    }

    .result-header,
    .result-content-body,
    .result-action-bar,
    .tracking-stepper-box {
        padding: 1.25rem;
    }

    .reg-card-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .btn-view-detail {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .result-action-bar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .result-action-bar a,
    .result-action-bar button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .btn-search {
        min-height: 48px;
    }

    .btn-submit-proof {
        min-height: 48px;
    }
}
