:root {
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --color-accent: #ff9900;
    --color-text: #f0f0f0;
    --color-text-dark: #a0a0a0;
    --color-bg-start: #2a2a2a;
    --color-bg-end: #1c1c1c;
    --color-success: #2ecc71;
    --color-error: #e74c3c;
    --glass-bg: rgba(255, 153, 0, 0.07);
    --glass-border: rgba(255, 153, 0, 0.2);
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: linear-gradient(45deg, var(--color-bg-start), var(--color-bg-end));
    background-size: 400% 400%;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
}

h1, h2 {
    font-family: var(--font-heading);
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.subtitle,
.stat-label,
.instruction-text {
    color: var(--color-text-dark);
    font-size: 14px;
}

.view {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
}

.glass-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.wizard-container {
    width: 100%;
    max-width: 700px;
    text-align: left;
}

.wizard-container h1,
.wizard-container h2 {
    justify-content: flex-start;
}

.wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.wizard-step {
    animation: step-fade-in 0.5s ease-in-out;
}

.login-container {
    max-width: 450px;
}

.passport-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.button-group {
    display: flex;
    gap: 15px;
}

.input-group {
    position: relative;
    margin: 15px 0;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-dark);
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
    text-align: center;
    transition: all 0.3s ease;
}

.input-group input[type="text"] {
    
    text-align: center;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.3);
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: var(--color-accent);
    color: var(--color-bg-start);
    font-family: var(--font-heading);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 153, 0, 0.3);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-fullwidth {
    margin-top: 30px;
}

.button-link {
    background: none;
    color: var(--color-text-dark);
    width: auto;
    padding: 10px 0;
    margin-top: 20px;
    font-size: 14px;
    font-family: var(--font-body);
}

.button-link:hover:not(:disabled) {
    color: var(--color-accent);
    transform: none;
    box-shadow: none;
}

.message {
    width: 100%;
    min-width: 0;
    min-height: 2.8em;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    overflow-wrap: break-word;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-message { color: var(--color-error); }
.status-message { color: var(--color-success); }

.divider {
    border: none;
    height: 1px;
    background-color: var(--glass-border);
    margin: 30px 0;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-bg-start);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.login-container > * {
    animation: apear-from-bottom 0.5s ease-in-out backwards;
}
.login-container h1 { animation-delay: 0.1s; }
.login-container .login-logo-container { animation-delay: 0.2s; }
.login-container .input-group { animation-delay: 0.3s; }
.login-container button { animation-delay: 0.4s; }

.login-logo-container {
    margin: 0;
}

.login-logo-container img {
    display: block;
    margin: 0 auto;
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

#instruction-step {
    display: flex;
    flex-direction: column;
}

#instruction-step h1 {
    margin-bottom: 15px;
}

#instruction-text {
    background: rgba(255, 153, 0, 0.05);
    border-left: 3px solid var(--color-accent);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: left;
}

.stats-single {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.stat-item-center {
    margin: 10px;
    padding: 20px;
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    min-width: 200px;
}

.stat-item-center .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 8px;
}

#close-session-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    line-height: 0;
    transition: all 0.2s ease-in-out;
    margin-left: auto;
    width: 2.5rem;
    height: 2.5rem;
}

#close-session-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

#close-session-btn svg {
    width: 24px;
    height: 24px;
}

.auto-refresh-timer {
    font-size: 13px;
    color: var(--color-text-dark);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    width: fit-content;
}

#refresh-countdown {
    color: var(--color-accent);
    font-weight: 600;
}

#recording-step .camera-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    margin: 20px auto;
}

#recording-step video,
#recording-step canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#recording-step video { transform: scaleX(-1); }
#recording-step canvas { background: transparent; border: none; }

.passport-header {
    margin-bottom: 30px;
}

.passport-header h1 {
    margin-bottom: 10px;
}

.passport-preview {
    width: 300px;
    height: 200px;
    margin: 0 auto 30px;
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    overflow: hidden;
}

.passport-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.upload-section {
    margin-bottom: 20px;
}

.upload-section .button-fullwidth {
    margin-bottom: 15px;
}

.passport-notification {
    display: block;
    /*background: rgba(46, 204, 113, 0.1);*/
    /*border: 1px solid rgba(46, 204, 113, 0.5);*/
    border-radius: 12px;
    padding: 15px 25px;
    margin: 20px 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.5s ease-out;
}

.passport-notification p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.passport-notification .feather-check-circle {
    width: 24px;
    height: 24px;
    /*stroke: var(--color-success);*/
    stroke-width: 2.5;
    flex-shrink: 0;
    /*filter: drop-shadow(0 0 5px rgba(46, 204, 113, 0.7));*/
}

.passport-notification .passport-thumbnail-container {
    width: 75px;
    
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /*border: 2px solid rgba(46, 204, 113, 0.6);*/
    background-color: var(--color-bg-end);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.passport-notification .passport-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.passport-notification .notification-text-group {
    /*color: var(--color-success);*/
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.reupload-button {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 153, 0, 0.15);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.reupload-button:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-start);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 153, 0, 0.3);
}

.reupload-button:active {
    transform: translateY(0) scale(1);
}

.reupload-button svg {
    width: 16px;
    height: 16px;
}

.files-table-container {
    margin: 20px 0;
    width: 100%;
}

.files-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.files-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
}

.files-table thead {
    background: rgba(255, 153, 0, 0.1);
}

.files-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--color-accent);
    border-bottom: 1px solid var(--glass-border);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.files-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 153, 0, 0.1);
    color: var(--color-text);
    font-size: 14px;
    vertical-align: middle;
}

.files-table tbody tr:hover {
    background: rgba(255, 153, 0, 0.05);
    transition: background-color 0.2s ease;
}

.files-table tbody tr:last-child td {
    border-bottom: none;
}

.file-photo-container {
    width: 100px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview-image {
    max-width: 100px;
    max-height: 60px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.session-id {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--color-text-dark);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending { background-color: #6c757d; color: white; border: 1px solid #6c757d; }
.status-waiting { background: rgba(255, 193, 7, 0.2); color: #ffc107; border: 1px solid rgba(255, 193, 7, 0.3); }
.status-approved { background: rgba(46, 204, 113, 0.2); color: var(--color-success); border: 1px solid rgba(46, 204, 113, 0.3); }
.status-rejected { background: rgba(231, 76, 60, 0.2); color: var(--color-error); border: 1px solid rgba(231, 76, 60, 0.3); }
.status-unknown { background: rgba(108, 117, 125, 0.2); color: #6c757d; border: 1px solid rgba(108, 117, 125, 0.3); }

.file-resolution {
    color: var(--color-text-dark);
    font-size: 12px;
    font-family: 'Courier New', monospace;
    background: rgba(255, 153, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 153, 0, 0.2);
}

.file-date {
    color: var(--color-text-dark);
    font-size: 13px;
}

.no-files-message {
    text-align: center;
    color: var(--color-text-dark);
    font-style: italic;
    padding: 40px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.upload-modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.upload-modal-content h2 {
    margin-bottom: 20px;
    color: var(--color-accent);
}

.progress-container { margin: 30px 0; }

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), #ffb84d);
    border-radius: 4px;
    width: 98%;
    transition: width 0.3s ease;
}

.progress-text { font-size: 18px; font-weight: 600; color: var(--color-accent); }
.upload-note { font-size: 14px; color: var(--color-text-dark); margin-top: 20px; font-style: italic; }

.countdown-overlay,
.recording-timer-overlay,
.instruction-overlay {
    position: absolute;
    z-index: 10;
    pointer-events: none;
}

.countdown-overlay {
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
}

.countdown-number {
    font-size: 120px;
    font-family: var(--font-heading);
    color: var(--color-accent);
    text-shadow: 0 0 20px rgba(255, 153, 0, 0.8);
    animation: countdown-pulse 1s ease-in-out;
}

.recording-timer-overlay { top: 20px; right: 20px; z-index: 12; }

.recording-timer-number {
    font-size: 48px;
    font-family: var(--font-heading);
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(255, 153, 0, 0.8);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 10px;
    animation: timer-pulse 1s ease-in-out;
}

.instruction-overlay {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

.instruction-text-overlay {
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-text);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 18px;
    font-family: var(--font-heading);
    text-align: center;
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.5);
    animation: instruction-appear 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes step-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes apear-from-bottom {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes countdown-pulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes timer-pulse {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes instruction-appear {
    0% { opacity: 0; transform: translateY(-20px) scale(0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }

    .glass-container {
        padding: 20px;
        margin: 10px 0;
        max-height: calc(100vh - 20px);
        width: calc(100% - 20px);
        max-width: none;
    }

    .upload-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }

    #recording-step .camera-container {
        max-width: 320px;
        aspect-ratio: 2 / 3;
        margin: 15px auto;
    }

    .files-table th,
    .files-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .files-table th:first-child,
    .files-table td:first-child { padding-left: 12px; }

    .files-table th:last-child,
    .files-table td:last-child { padding-right: 12px; }

    .session-id { font-size: 11px; }
    .status-badge { padding: 2px 8px; font-size: 10px; }
    .file-resolution { font-size: 10px; padding: 1px 4px; }
    .file-date { font-size: 11px; }
}

@media (max-width: 480px) {
    .files-table th:nth-child(4),
    .files-table td:nth-child(4),
    .files-table th:nth-child(6),
    .files-table td:nth-child(6) {
        display: none;
    }
}

.passport-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.preview-slot {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: var(--color-text-dark);
}

.preview-slot.filled {
    border-style: solid;
    border-color: var(--color-accent);
    cursor: default;
}

.preview-slot:not(.filled):hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: scale(1.05);
}

.preview-slot .placeholder-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}
.preview-slot .placeholder-text {
    font-size: 13px;
    text-align: center;
}

.preview-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-slot .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}

.preview-slot.filled:hover .remove-btn {
    opacity: 1;
}

.preview-slot .remove-btn i {
    width: 16px;
    height: 16px;
}

.passport-notification-content {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}
.passport-notification-thumbnails {
    display: flex;
    gap: 10px;
}

.passport-notification .passport-thumbnail-container {
    width: 75px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(46, 204, 113, 0.6);
    background-color: var(--color-bg-end);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.passport-notification .passport-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


#progress-widget-container {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 153, 0, 0.08); 
    border: 1px solid rgba(255, 153, 0, 0.25);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

#progress-widget-container.completed {
    background: rgba(46, 204, 113, 0.1); 
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

.progress-widget-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-accent);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#progress-widget-container.completed .progress-widget-title {
    color: var(--color-success);
}

.progress-value {
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 15px;
    line-height: 1;
}

#progress-widget-container.completed .progress-value {
    color: var(--color-success);
}

.stars-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.stars-container .feather-star {
    width: 28px;
    height: 28px;
    fill: none; 
    stroke: var(--color-text-dark); 
    stroke-width: 1.5;
}

.stars-container .feather-star.filled {
    fill: var(--color-accent); 
    stroke: var(--color-accent);
}

#progress-widget-container.completed .stars-container .feather-star {
    stroke: var(--color-success);
}

#progress-widget-container.completed .stars-container .feather-star.filled {
    fill: var(--color-success);
}


.progress-messages {
    font-size: 14px;
    color: var(--color-text-dark);
    line-height: 1.6;
}

.progress-messages ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.progress-messages li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-messages li i {
    width: 16px;
    height: 16px;
    stroke: var(--color-text-dark);
    flex-shrink: 0;
}

.progress-messages li.completed-task i {
    stroke: var(--color-success);
}

@media (max-width: 768px) {
    #progress-widget-container {
        padding: 15px;
        margin: 20px 0;
    }
    .progress-widget-title {
        font-size: 20px;
    }
    .progress-value {
        font-size: 3rem;
    }
    .stars-container .feather-star {
        width: 24px;
        height: 24px;
    }
    .progress-messages {
        font-size: 13px;
    }
}
/* #### НОВОЕ: Стили для списка задач в виджете прогресса #### */
.progress-tasks-list ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    text-align: left;
}

.progress-tasks-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    border-left: 4px solid var(--color-text-dark);
    transition: all 0.3s ease;
}

.progress-tasks-list li.completed-task {
    border-left-color: var(--color-success);
    background-color: rgba(46, 204, 113, 0.05);
}

.task-icon {
    flex-shrink: 0;
}

.task-icon i {
    width: 24px;
    height: 24px;
    color: var(--color-text-dark);
}

.progress-tasks-list li.completed-task .task-icon i {
    color: var(--color-success);
}

.task-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.task-title {
    font-weight: 500;
    color: var(--color-text);
}

.task-points-info {
    font-size: 12px;
    color: var(--color-text-dark);
    opacity: 0.8;
}

.task-counter {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
}

.progress-tasks-list li.completed-task .task-counter {
    color: var(--color-success);
}

.warning-message {
    color: var(--color-accent);
    background-color: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.3);
    border-radius: 4px;
    padding: 15px 0;
    margin-bottom: 20px;
    min-height: 0;
}

.warning-message strong {
    font-weight: 600;
    color: #ffb84d;
}

/* Стили для оверлея авто-входа */
#auto-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: none; /* Скрыт по умолчанию */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

#auto-login-overlay .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

#auto-login-overlay p {
    font-size: 1.2rem;
    margin: 0;
}

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

/* --- Стили для уведомления о статусе паспортов --- */
.passport-status-grid {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-wrap: wrap; /* Для мобильных устройств */
    width: 100%;
    margin-top: 10px;
}

.passport-status-item {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
}

.passport-status-item img.passport-thumbnail {
    display: block;
    width: 100px;
    height: auto;
    border-radius: 6px;
}

.passport-status-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.passport-status-icon svg {
    width: 14px;
    height: 14px;
}

/* Цвета статусов */
.status-match { background-color: #28a745; color: white; }
.status-mismatch { background-color: #ffc107; color: #333; cursor: help; }
.status-processing { background-color: #17a2b8; color: white; }
.status-error { background-color: #dc3545; color: white; }


/* Стили для всплывающей подсказки с расхождениями */
.mismatch-tooltip {
    visibility: hidden;
    width: 280px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 10;
    bottom: 110%;
    left: 50%;
    margin-left: -140px; /* Половина ширины */
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    font-size: 12px;
}

.mismatch-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.passport-status-icon.status-mismatch:hover .mismatch-tooltip {
    visibility: visible;
    opacity: 1;
}

.mismatch-tooltip h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}
.mismatch-tooltip ul {
    margin: 0;
    padding-left: 18px;
}
.mismatch-tooltip li {
    margin-bottom: 5px;
}
.mismatch-tooltip code {
    background-color: #555;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

/* Общий заголовок для блока с паспортами */
.passport-status-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.passport-status-title {
    font-weight: 500;
}

.passport-thumbnail-placeholder {
    width: 100px;
    height: 70px; /* Примерная высота, подберите под себя */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.2);
    border-radius: 6px;
    border: 1px dashed rgba(255,255,255,0.3);
}
.passport-thumbnail-placeholder svg {
    width: 24px;
    height: 24px;
    color: rgba(255,255,255,0.5);
}
