/* User Profile Styles */
.poltrada-press-user-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.profile-header h1 {
    margin: 0 0 10px;
    font-size: 2.5em;
    font-weight: 700;
}

.profile-header p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.profile-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.card-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
}

.card-icon {
    font-size: 2em;
    opacity: 0.7;
}

.card-body {
    padding: 25px;
}

/* User Info Grid */
.user-info-grid {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
}

.info-value {
    color: #2c3e50;
    font-weight: 500;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #fff;
    border-color: #667eea;
    transform: scale(1.05);
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-number.pending {
    color: #ffc107;
}

.stat-number.approved {
    color: #28a745;
}

.stat-number.rejected {
    color: #dc3545;
}

.stat-label {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
}

/* Submissions List */
.orders-card,
.submissions-card {
    grid-column: 1 / -1;
}

.submissions-list {
    display: grid;
    gap: 20px;
}

.submission-item {
    padding: 25px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
}

.submission-item:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
}

.submission-item.status-pending {
    border-left: 4px solid #ffc107;
}

.submission-item.status-approved {
    border-left: 4px solid #28a745;
}

.submission-item.status-rejected {
    border-left: 4px solid #dc3545;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.submission-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
}

.submission-date {
    color: #6c757d;
    font-size: 0.9em;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 20px;
}

.submission-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-label {
    font-weight: 600;
    color: #495057;
}

.detail-value {
    color: #2c3e50;
    font-weight: 500;
}

/* Timeline Progress */
.timeline-container {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.timeline-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
}



.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 1s ease;
}

.progress-steps {
    display: grid;
    /* Ubah dari 5 kolom menjadi 6 kolom */
    grid-template-columns: repeat(6, 1fr);
    /* Kurangi jarak antar item agar lebih pas */
    gap: 5px; 
    position: relative;
}

.progress-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

.progress-step.active .step-marker {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.progress-step.current .step-marker {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: scale(1.1);
}

.step-icon, .step-number {
    font-weight: 600;
    font-size: 0.9em;
}

.step-label {
    font-size: 0.8em;
    color: #6c757d;
    font-weight: 500;
}

.progress-step.active .step-label,
.progress-step.current .step-label {
    color: #2c3e50;
    font-weight: 600;
}

/* Empty State */
.no-submissions {
    text-align: center;
    padding: 60px 20px;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4em;
    display: block;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h4 {
    margin: 0 0 10px;
    color: #6c757d;
    font-weight: 600;
}

.empty-state p {
    margin: 0 0 25px;
    color: #6c757d;
}

/* Submission Notes */
.submission-notes {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
}

.submission-notes strong {
    color: #856404;
    display: block;
    margin-bottom: 8px;
}

.submission-notes p {
    margin: 0;
    color: #856404;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .profile-header {
        padding: 20px;
    }
    
    .profile-header h1 {
        font-size: 2em;
    }
    
    .submission-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .submission-details {
        grid-template-columns: 1fr;
    }
    
    .progress-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .poltrada-press-user-profile {
        padding: 15px;
    }
    
    .progress-steps {
        grid-template-columns: 1fr 1fr;
    }
    
    .card-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .timeline-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }


}

/* Styling untuk Tombol Edit Akun */
.profile-actions {
    margin-top: 25px;
    text-align: right;
}

a.edit-profile-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #667eea;
    color: white !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

a.edit-profile-button:hover {
    background-color: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}


/* ============================================= */
/* STYLING: Blok Petunjuk Selanjutnya di Profil  */
/* ============================================= */

.submission-next-steps {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa; /* Warna latar netral */
    border: 1px solid #e9ecef;
    border-left: 4px solid #667eea; /* Aksen warna utama */
    border-radius: 8px;
}

.next-steps-title {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
}

.next-steps-content p {
    margin: 0 0 15px 0;
    color: #495057;
    line-height: 1.5;
    font-size: 0.95em;
}

/* Menghilangkan margin bawah paragraf terakhir agar tombol pas */
.next-steps-content p:last-of-type {
    margin-bottom: 0;
}

.next-steps-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    padding: 8px 16px;
    background-color: #667eea;
    color: white !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s ease-in-out;
}

.next-steps-button:hover {
    background-color: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.next-steps-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Gaya untuk status 'ditarik' (Silang Merah) di progress bar */
.progress-step.withdrawn .step-marker {
    background: #dc3545; /* Warna merah */
    border-color: #dc3545;
}

.progress-step.withdrawn .step-marker .step-icon {
    color: white; /* Ikon silang menjadi putih */
    font-size: 22px;
}

/* ============================================= */
/* GAYA KHUSUS: Petunjuk Selanjutnya Status Ditarik */
/* ============================================= */

/* Mengubah warna latar dan border card */
.submission-item.status-ditarik .submission-next-steps {
    background-color: #f8d7da; /* Merah Pudar */
    border-left-color: #dc3545; /* Merah Pekat */
}

/* Mengubah warna judul */
.submission-item.status-ditarik .next-steps-title {
    color: #721c24; /* Merah Gelap */
}

/* Mengubah warna teks paragraf */
.submission-item.status-ditarik .next-steps-content p {
    color: #721c24; /* Merah Gelap */
}

/* Gaya untuk Card Petunjuk 'Terpublikasi' */
.submission-item.status-terpublikasi .submission-next-steps {
    background-color: #d4edda; /* Hijau Pudar */
    border-left-color: #28a745; /* Hijau Pekat */
}
.submission-item.status-terpublikasi .next-steps-title,
.submission-item.status-terpublikasi .next-steps-content p {
    color: #155724; /* Hijau Gelap */
}
.next-steps-button.secondary {
    background-color: #e9ecef;
    color: #495057 !important;
}

/* ===== KODE BARU: STYLING UNTUK TAB PROFIL ===== */
.profile-tabs-container {
    grid-column: 1 / -1; /* Membuat kontainer tab mengambil lebar penuh */
    margin-top: 20px;
}

.profile-tabs-nav {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: -2px; /* Agar tab aktif menyatu dengan border */
}

a.profile-tab-link {
    display: inline-flex; 
    align-items: center;  
    gap: 8px;             
    padding: 10px 20px;
    font-weight: 600;
    color: #6c757d;
    text-decoration: none;
    border: 2px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background-color: #f8f9fa;
    transition: all 0.2s ease-in-out;
}

a.profile-tab-link:hover {
    color: #2c3e50;
    background-color: #e9ecef;
}

a.profile-tab-link.active {
    color: #667eea;
    background-color: #fff;
    border-color: #dee2e6;
    border-bottom: 2px solid #fff;
}

.profile-tab-pane {
    display: none; /* Sembunyikan semua panel konten secara default */
}

.profile-tab-pane.active {
    display: block; /* Tampilkan hanya panel yang aktif */
}

.profile-tab-pane .profile-card {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-top: none;
    border-top-left-radius: 0;
}

/* Gaya untuk Tombol Delete Pesanan */
.action-buttons .button-delete-order {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

.action-buttons .button-delete-order:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

.next-steps-buttons-wrapper .next-steps-button .dashicons {
    line-height: 1; /* Kunci utama untuk menyejajarkan ikon dengan teks */
    height: 16px;   /* Menyamakan tinggi ikon dengan font */
    width: 16px;    /* Menyamakan lebar ikon dengan font */
}   

/* ============================================= */
/* GAYA UNTUK NOTIFIKASI BADGE DI TAB PROFIL     */
/* ============================================= */

/* Jadikan link tab sebagai acuan posisi */
a.profile-tab-link {
    position: relative;
}

/* Gaya untuk badge notifikasi */
.profile-tab-badge {
    position: absolute;
    top: 2px;
    right: 5px;
    background-color: #d63638; /* Warna merah notifikasi */
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1px solid white;
}

/* ============================================= */
/* GAYA UNTUK TOMBOL AKSI DI DALAM KARTU PROFIL  */
/* ============================================= */

.profile-card .card-footer {
    padding: 0 25px 25px 25px; /* Padding bawah dan samping */
    text-align: right; /* Mendorong tombol ke kanan */
    border-top: 1px solid #f0f0f1; /* Garis pemisah tipis */
    margin: 0 25px; /* Menyamakan dengan padding card-body */
}

a.card-action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #667eea;
    color: white !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s ease-in-out;
}

a.card-action-button:hover {
    background-color: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}