* {
    box-sizing: border-box
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #1a1a1a;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

/* Material Design 3 Top App Bar */
.md3-top-app-bar {
    background: #800000;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-app-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.top-app-bar-title {
    font-size: clamp(20px, 4vw, 28px);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.15px;
    line-height: 1.3;
    flex: 1;
}

/* User Avatar Button in App Bar */
.user-avatar-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    padding: 0;
    line-height: 0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: auto;
    aspect-ratio: 1 / 1;
}

.user-avatar-button:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-avatar-button:active {
    transform: scale(0.98);
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

/* User Modal Dialog */
.user-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s;
    padding: 20px;
}

.user-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.user-modal-dialog {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 320px;
    width: 100%;
    transform: scale(0.9);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.user-modal-overlay.show .user-modal-dialog {
    transform: scale(1);
}

.user-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.user-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.user-modal-content {
    padding: 32px 24px 24px;
    text-align: center;
}

.user-modal-avatar {
    margin: 0 auto 16px;
    width: 80px;
    height: 80px;
}

.user-modal-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f5f5f5;
}

.user-modal-name {
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: 0.1px;
}

.user-modal-email {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    word-break: break-all;
}

.user-modal-logout {
    display: inline-block;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 8px;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-modal-logout:hover {
    color: #800000;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .top-app-bar-container {
        padding: 12px 16px;
        min-height: 56px;
    }

    .top-app-bar-title {
        font-size: 18px;
    }

    .user-avatar-button {
        width: 36px;
        height: 36px;
    }

    .user-menu-dropdown {
        width: 260px;
    }
}

/* Main content wrapper - 500px max width centered */
.main-wrapper {
    max-width: 650px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 10px;
}

footer {
    text-align: center;
    font-size: 13px;
    margin: 50px 0 50px;
}

footer a {
    color: #800000;
    text-decoration: underline;
}

.footer-site-info {
    background-color: #ddd;
    background-position: center center;
    font-size: 14px;
    line-height: 1.571;
    padding: 60px 0 40px;
    text-align: center;
}

/* MD3 Container Cards */
.container {
    margin: 20px auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
}

.container-wide {
    max-width: 1200px;
    width: 100%;
}

.container-form {
    width: 100%;
}

@media (max-width: 600px) {
    .container {
        padding: 12px;
        margin: 12px auto;
        width: 90%;
    }

    .container-wide {
        padding: 12px;
        margin: 12px 0;
        width: 100%;
    }

    .main-wrapper {
        padding: 0;
        max-width: 100%;
    }
}

/* Material Design 3 Welcome Section */
.welcome-section {
    margin: 24px auto 20px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 650px;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-section:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
}

.user-avatar {
    flex-shrink: 0;
}

.user-avatar img {
    width: 64px;
    height: 64px;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-section-content {
    flex: 1;
    text-align: right;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.welcome-section h3 {
    margin: 0;
    font-size: clamp(16px, 4vw, 20px);
    color: #1a1a1a;
    font-weight: 500;
    letter-spacing: 0.1px;
    line-height: 1.3;
}

.welcome-section p {
    margin: 0;
    font-size: clamp(13px, 3.5vw, 14px);
    color: #666;
    line-height: 1.4;
}

.user-info-line {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.user-email {
    color: #666;
}

.logout-separator {
    color: #999;
}

.logout-link {
    font-size: 13px;
}

@media (max-width: 600px) {
    .welcome-section {
        margin: 16px 8px;
        padding: 12px 16px;
        gap: 12px;
    }

    .user-avatar img {
        width: 56px;
        height: 56px;
    }
}

.logout-link a {
    color: #888;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.15s;
}

.logout-link a:hover {
    color: #a01530;
    text-decoration: underline;
}

/* MD3 Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #1a1a1a;
    letter-spacing: 0.1px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f8f9fa;
    height: 56px;
    line-height: normal;
    color: #1a1a1a;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 40px;
}

#by_law_group {
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #800000;
    border-width: 2px;
    background-color: #ffffff;
    box-shadow: none;
    padding: 15px;
}

/* MD3 Filled Button */
button {
    padding: 10px 24px;
    font-size: 14px;
    background: #800000;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    min-height: 40px;
    font-weight: 500;
    letter-spacing: 0.1px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.15);
}

button:hover {
    background: #a00000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.15);
}

button:active {
    background: #600000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.google-btn {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: #1f1f1f;
    border: 1px solid #747775;
    padding: 0;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s, background-color 0.2s;
    min-height: 44px;
    font-weight: 500;
}

.google-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.google-btn:active {
    background-color: #f1f3f4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.google-btn-icon {
    background: white;
    padding: 12px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.google-btn-text {
    padding: 0 12px 0 12px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.25px;
}

.google-btn img {
    width: 18px;
    height: 18px;
}

.login-section {
    text-align: center;
    margin-top: 24px;
    border-top: 1px solid #e0e0e0;
    padding-top: 24px;
}

.login-section p {
    color: #5f6368;
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.login-reason {
    color: #555 !important;
    font-size: 13px !important;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    font-weight: 400 !important;
    line-height: 1.5;
    font-style: italic;
    opacity: 0.9;
}

/* MD3 Messages */
.error-message {
    color: #b3261e;
    background: #fef7f6;
    border-right: none;
    border-radius: 12px;
    margin-bottom: 16px;
    margin-top: 16px;
    padding: 16px;
    font-size: 14px;
    word-break: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.success-message {
    color: #146c43;
    background: #f0f9f4;
    border-right: none;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* MD3 Loader */
.loader-container {
    display: none;
    margin: 24px auto;
    padding: 24px;
    text-align: center;
}

.loader-box {
    display: inline-block;
    padding: 32px;
    border: none;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.loader-message {
    font-weight: 500;
    margin-bottom: 16px;
    font-size: clamp(14px, 4vw, 16px);
    color: #1a1a1a;
    letter-spacing: 0.1px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f0f0f0;
    border-top-color: #800000;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

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

/* MD3 Record Card */
.record-box {
    border: none;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    background: #ffffff;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.record-box:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
}

.record-name {
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 500;
    margin-bottom: 16px;
    color: #1a1a1a;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
    letter-spacing: 0.1px;
}

.record-field {
    margin-top: 12px;
    word-break: break-word;
    line-height: 1.6;
    align-items: baseline;
    gap: 8px;
}

.record-field-center {
    word-break: break-word;
    line-height: 1.6;
    align-items: baseline;
    gap: 8px;
    text-align: center;
}

.record-field-small {
    line-height: 1.6;
    font-size: 14px;
}

.record-field-big {
    margin-top: 12px;
    word-break: break-word;
    line-height: 1.6;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 20px;
}

.record-field strong {
    color: #666;
    font-weight: 600;
}

.status-code-highlight {
    background: #f0f0f0;
    color: #000;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 4px;
    display: inline-block;
}

.no-data-message {
    color: #999;
    margin-bottom: 12px;
    font-style: italic;
    font-size: clamp(13px, 3vw, 14px);
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.na-message {
    color: #999;
    margin-bottom: 12px;
    font-style: italic;
    font-size: clamp(13px, 3vw, 14px);
    padding: 10px;
    background: #f9f9f9;
    border-right: 3px solid #ccc;
    border-radius: 4px;
}

/* RTL helpers: keep code/access inputs LTR for readability */
#access_code {
    direction: ltr;
    text-align: left;
}

code {
    direction: ltr;
    text-align: left;
}

a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

a:hover {
    color: #1a3a52;
    text-decoration: underline;
}

code {
    font-family: 'Courier New', monospace;
    background: #f5f5f5;
    padding: 3px 6px;
    border-radius: 3px;
    word-break: break-all;
    color: #333;
}

/* Progress widget (RTL, step 1 on right) */
.status-progress {
    direction: rtl;
    text-align: right;
    margin: 8px 0 6px 0;
    max-width: 100%;
    overflow-x: hidden;
}

.status-progress .current-indicator {
    margin: 8px 0 10px 0;
    font-size: 20px;
    color: #800000;
}

.status-progress .awaiting-banner {
    display: inline-block;
    margin-inline-start: 8px;
    background: #d9534f;
    color: #fff;
    padding: 4px 20px;
    border-radius: 999px;
    font-size: 12px;
    vertical-align: middle;
    margin: 10px 0 5px 0;
}

.status-progress .progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 12px 12px 0 0;
    box-shadow: none;
    flex-direction: row;
    max-width: 100%;
    box-sizing: border-box;
}

.status-progress .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    flex: 0 0 auto;
    max-width: 120px;
    user-select: none;
    position: relative;
    min-width: 0;
}

.status-progress .circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #800000;
    color: #800000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #fff;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    flex-shrink: 0;
}

.status-progress .label {
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.2;
    word-wrap: break-word;
}

.status-progress .connector {
    position: relative;
    flex: 0 0 30px;
    height: 6px;
    background: #dcdcdc;
    border-radius: 3px;
}

.status-progress .connector:after {
    content: "";
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 10px solid #dcdcdc;
}

.status-progress .step.active .label {
    color: #800000;
    text-decoration: underline;
    font-weight: bold;
}

.status-progress .step.completed .circle {
    background: #800000;
    color: #fff;
    border-color: #800000;
}

.status-progress .connector.filled {
    background: #800000;
}

.status-progress .connector.filled:after {
    border-right-color: #800000;
}

.status-progress .step.current .circle {
    box-shadow: 0 0 0 3px rgba(128, 0, 0, .15);
    background: #800000;
    color: #fff;
}

.status-progress .current-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #800000;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid #800000;
}

.status-progress .details {
    margin-top: -1px;
    background: #f0f0f0;
    border: none;
    border-radius: 0 0 12px 12px;
    padding: 20px;
    box-shadow: none;
    max-width: 100%;
    box-sizing: border-box;
}

.status-progress .details h2 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #800000;
}

.status-progress .details p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Debug boxes */
.debug-box {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    margin: 10px;
    padding: 10px;
    font-family: monospace;
}

.debug-box-warning {
    background: #fff3e0;
    border: 1px solid #ff9800;
    margin: 10px;
    padding: 10px;
    font-family: monospace;
}

.debug-box-yellow {
    background: #fff3cd;
    border: 1px solid #ffc107;
    margin: 10px 0;
    padding: 10px;
    font-family: monospace;
}

.debug-box-gray {
    background: #f8f8f8;
    border: 1px solid #ddd;
    margin: 10px 0;
    padding: 10px;
    font-family: monospace;
}

/* Header */
.page-header {
    text-align: center;
    margin: 16px 0;
}

.page-title {
    font-size: clamp(20px, 4vw, 28px);
    margin: 0;
    padding: 0;
}

/* Loader */
.loader-container {
    margin: 20px auto;
    padding: 20px;
    text-align: center;
}

.loader-box {
    display: inline-block;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.loader-text {
    font-weight: 700;
    margin-bottom: 8px;
}

.loader-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #eee;
    border-top-color: #007bff;
    border-radius: 50%;
    margin: 0 auto 6px;
    animation: spin 1s linear infinite;
}

/* Status info container */
.status-info-container {
    margin: 12px 0;
}

.status-date-info {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* MD3 Notification Card */
.notification-link {
    margin-top: 24px;
    padding: 20px;
    background: #e7f5e9;
    border: none;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.notification-link strong {
    color: #146c43;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.notification-link a {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: #146c43;
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-link a:hover {
    background: #1a8754;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Submit button full width */
.submit-button-full {
    width: 100%;
}

/* Google sign-in container */
.gsi-container {
    display: flex;
    justify-content: center;
}

/* Error message (hidden by default) */
.error-message-hidden {
    display: none;
}

/* MD3 Coming Soon Section */
.coming-soon {
    background: #e7f5e9;
    border: none;
    border-radius: 12px;
    padding: 24px;
    margin: 24px auto 20px;
    max-width: 800px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    text-align: right;
}

.coming-soon strong {
    display: block;
    font-size: 20px;
    color: #146c43;
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.coming-soon ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.coming-soon li {
    padding: 12px 0 12px 40px;
    position: relative;
    color: #1e4620;
    font-size: 16px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(40, 167, 69, 0.2);
}

.coming-soon li:last-child {
    border-bottom: none;
}


/* Mobile tweaks: make connectors shorter and elements tighter */
@media (max-width: 600px) {
    .status-progress .progress {
        gap: 4px;
        padding: 15px 8px;
    }

    .status-progress .step {
        width: 50px;
        max-width: 50px;
    }

    .status-progress .circle {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .status-progress .label {
        font-size: 10px;
        margin-top: 4px;
    }

    .status-progress .connector {
        flex: 0 0 10px;
        height: 4px;
    }

    .status-progress .connector:after {
        left: -6px;
        border-top-width: 5px;
        border-bottom-width: 5px;
        border-right-width: 7px;
    }

    .status-progress .current-indicator {
        font-size: 16px;
    }

    .status-progress .details {
        padding: 12px;
    }

    .status-progress .details h2 {
        font-size: 14px;
    }

    .status-progress .details p {
        font-size: 13px;
    }

    .coming-soon {
        padding: 18px 20px;
        margin: 20px 10px;
    }

    .coming-soon strong {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .coming-soon li {
        font-size: 14px;
        padding: 10px 0 10px 35px;
    }

    .coming-soon li:before {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
}

/* MD3 Status Statistics Card */
.status-statistics {
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.stats-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stats-error {
    text-align: center;
    padding: 20px;
    color: #c41c3b;
    font-size: 14px;
    background: #fef5f5;
    border-radius: 4px;
    border-right: 4px solid #c41c3b;
}

.stats-header {
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 800;
    color: #800000;
    margin-bottom: 0;
    text-align: center;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    transition: background-color 0.2s ease;
}

.stats-header:hover {
    background-color: rgba(26, 58, 82, 0.05);
    border-radius: 4px;
}

.stats-header-text {
    flex: 0 1 auto;
}

.stats-toggle-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #800000;
}

.stats-header.collapsed .stats-toggle-arrow {
    transform: rotate(90deg);
}

.stats-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 1;
    margin-top: 8px;
}

.stats-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.stats-subheader {
    font-size: clamp(12px, 3vw, 14px);
    color: #666;
    margin-bottom: 2px;
    text-align: center;
}

.stats-records-info {
    font-size: clamp(12px, 3vw, 14px);
    color: #666;
    margin-bottom: 24px;
    text-align: center;
}

/* Two-column table layout */
.stats-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.stats-table-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: center;
}

/* Column 1: Labels */
.stats-label-col {
    text-align: right;
    padding-right: 8px;
}

.stats-label-text {
    font-weight: 600;
    font-size: clamp(13px, 3vw, 14px);
    color: #333;
    white-space: nowrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Column 2: Bars with percentages */
.stats-bar-col {
    position: relative;
}

.stats-bar-wrapper {
    background: #e9ecef;
    border-radius: 20px;
    height: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stats-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    transition: width 0.4s ease;
    min-width: 0px;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
    padding: 0 0 0 5px;
}

.stats-bar-percent {
    color: white;
    font-weight: 700;
    font-size: clamp(12px, 3vw, 13px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Current status highlighting */
.stats-table-row.current .stats-label-text {
    color: #28a745;
    font-weight: 700;
}

.stats-table-row.current .stats-bar-fill {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.4);
}

.stats-footer {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 600;
    padding-top: 8px;
    margin-top: 12px;
    border-top: 1px solid #dee2e6;
}

@media (max-width: 600px) {
    .status-statistics {
        padding: 12px;
    }

    .stats-header {
        font-size: 14px;
        margin: 12px;
    }

    .stats-table {
        gap: 8px;
    }

    .stats-table-row {
        grid-template-columns: 100px 1fr;
        gap: 8px;
    }

    .stats-label-text {
        font-size: 12px;
    }

    .stats-bar-wrapper {
        height: 28px;
    }

    .stats-bar-percent {
        font-size: 11px;
    }

    .stats-bar-fill {
        min-width: 0px;
    }
}