.portal-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    color: #1a1f36;
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0f172a;
}

.brand-logo {
    color: #0d9488;
    font-weight: 700;
}

.brand-portal {
    color: #64748b;
    font-weight: 400;
}

.portal-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn-new-complaint {
    background-color: #0d9488;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.portal-user-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.user-avatar {
    background-color: #1e293b;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.btn-signout {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.portal-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.welcome-section {
    margin-bottom: 32px;
}

.welcome-section h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #0f172a;
}

.welcome-section p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

/* Horizontal Cards */
.complaints-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.complaint-card-mini {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    min-width: 300px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.complaint-card-mini.active {
    border: 2px solid #0d9488;
}

.card-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ref-mini {
    font-size: 0.75rem;
    color: #64748b;
    font-family: monospace;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-hearing { background-color: #f3e8ff; color: #7e22ce; }
.badge-review { background-color: #e0f2fe; color: #0369a1; }
.badge-closed { background-color: #f1f5f9; color: #475569; }
.badge-new { background-color: #fef3c7; color: #b45309; }

.title-mini {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: #0f172a;
    line-height: 1.4;
}

.meta-mini {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Detail Section */
.complaint-detail {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.detail-main {
    flex: 1;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.detail-ref {
    font-family: monospace;
    color: #7e22ce;
    font-size: 0.85rem;
    font-weight: 500;
}

.detail-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.detail-meta {
    display: flex;
    gap: 24px;
    font-size: 0.85rem;
    color: #64748b;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sla-widget {
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sla-days {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d97706;
    line-height: 1;
}

.sla-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #d97706;
    margin-top: 4px;
}

.sla-deadline {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 12px;
}

/* Action Banner */
.action-banner {
    background: #fdf4ff;
    border: 1px solid #f0abfc;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.action-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-icon {
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid #e879f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c026d3;
}

.action-text h4 {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    color: #1e1b4b;
    font-weight: 500;
}

.action-text p {
    margin: 0;
    font-size: 0.8rem;
    color: #7e22ce;
}

.btn-action {
    background: #7e22ce;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

/* Tabs */
.portal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-btn.active {
    background: #1e293b;
    color: white;
}

/* FAQs Tab */
.faq-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.faq-container h3 {
    margin: 0 0 16px 0;
    font-size: 1rem;
    font-weight: 600;
}

.faq-item {
    border-top: 1px solid #f1f5f9;
    padding: 16px 0;
    display: block;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
}

.faq-answer {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

/* Bottom Action Cards */
.bottom-actions {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.action-card-dark {
    background: #0f172a;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-dark-left {
    display: flex;
    gap: 16px;
}

.card-dark-icon {
    width: 32px;
    height: 32px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.card-dark-text h4 {
    margin: 0 0 4px 0;
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.card-dark-text p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.85rem;
    max-width: 500px;
}

.btn-start-complaint {
    background-color: #0d9488;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-card-light {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-light-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-light-icon {
    width: 36px;
    height: 36px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.card-light-text h4 {
    margin: 0 0 4px 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 600;
}

.card-light-text p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}

.btn-contact-ic {
    background: white;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Timeline */
.timeline-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.timeline-container h3 {
    margin: 0 0 24px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.timeline {
    position: relative;
    padding-left: 16px;
}

.timeline-item {
    position: relative;
    padding-left: 32px;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-line {
    position: absolute;
    left: 11px;
    top: 24px;
    bottom: -8px;
    width: 2px;
}

.timeline-item:last-child .timeline-line {
    display: none;
}

.line-completed {
    background-color: #0d9488;
}

.line-pending {
    background-color: #e2e8f0;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.icon-completed {
    background-color: #0d9488;
    color: white;
}

.icon-pending {
    background-color: white;
    border: 2px solid #e2e8f0;
}

.icon-pending-inner {
    width: 6px;
    height: 6px;
    background-color: #cbd5e1;
    border-radius: 50%;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.title-completed {
    color: #0f172a;
}

.title-pending {
    color: #64748b;
}

.timeline-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-green {
    background-color: #ccfbf1;
    color: #115e59;
}

.badge-grey {
    background-color: #f1f5f9;
    color: #64748b;
}

.badge-blue {
    background-color: #e0f2fe;
    color: #0369a1;
}

.timeline-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Documents Tab */
.docs-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.docs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.docs-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.btn-upload {
    background-color: #0d9488;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.doc-list {
    display: flex;
    flex-direction: column;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.doc-item:last-child {
    border-bottom: none;
}

.doc-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.doc-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
}

.doc-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.doc-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    margin: 0;
}

.doc-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}

.doc-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.doc-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-ic {
    border: 1px solid #e2e8f0;
    color: #64748b;
    background: white;
}

.badge-user {
    border: 1px solid #bfdbfe;
    color: #3b82f6;
    background: #eff6ff;
}

.btn-download {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-download:hover {
    color: #0f172a;
}

/* Updates Tab */
.updates-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.updates-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.updates-header h3 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.updates-header p {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.update-list {
    display: flex;
    flex-direction: column;
}

.update-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.update-item:last-child {
    border-bottom: none;
}

.update-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.update-icon.blue {
    background: #eff6ff;
    color: #3b82f6;
}

.update-icon.orange {
    background: #fff7ed;
    color: #f97316;
}

.update-icon.green {
    background: #f0fdf4;
    color: #22c55e;
}

.update-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.update-text {
    font-size: 0.9rem;
    color: #334155;
    margin: 0;
    line-height: 1.4;
}

.update-date {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}

/* Confirmed Action Banner */
.action-banner-success {
    background: #f0fdfa;
    border: 1px solid #5eead4;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.action-icon-success {
    width: 36px;
    height: 36px;
    background: #ccfbf1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f766e;
}

.action-text-success h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #0f766e;
    font-weight: 600;
}

.action-text-success p {
    margin: 0;
    font-size: 0.8rem;
    color: #0f766e;
}

.confirmed-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0d9488;
    font-weight: 600;
    font-size: 0.875rem;
}

