.app-container {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Колонки */
.column {
    height: 100%;
    padding: 20px;
    background-color: white;
    overflow-y: auto;
}

#left-column {
    width: 200px;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#center-column {
    flex: 1;
    min-width: 0; /* Для корректной работы flex */
    padding-top: 100px; /* Отступ от верхнего края */
    display: flex;
    justify-content: center;
}

#right-column {
    width: 200px;
    border-left: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Контент в центральной колонке */
.center-content {
    width: 100%;
    max-width: 1000px;
    min-width: 1000px;
    margin: 0 auto;
}

/* Кнопки */
.btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn:active {
    transform: translateY(1px);
}

/* Полноэкранное всплывающее окно */
.fullscreen-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    overflow-y: auto;
}

.popup-content {
    width: 100%;
    max-width: 1000px;
    min-width: 1000px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px;
    position: relative;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.popup-header h2 {
    color: #333;
    font-size: 28px;
    font-weight: 700;
}

.close-popup {
    background: none;
    border: none;
    font-size: 36px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-popup:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* Контент резюме */
.cv-content {
    line-height: 1.6;
    color: #333;
}

.cv-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.cv-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 22px;
}

.cv-section p {
    margin-bottom: 10px;
    color: #555;
}

/* QR код результат */
.qr-result {
    text-align: center;
    padding: 20px;
}

.qr-result h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 24px;
}

.qr-result p {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.qr-image {
    max-width: 300px;
    height: auto;
    margin: 20px auto;
    border: 10px solid white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Сообщения об ошибке */
.error {
    background-color: #fee;
    color: #c33;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #c33;
    text-align: center;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1400px) {
    .center-content,
    .popup-content {
        min-width: 800px;
        max-width: 800px;
    }
}

@media (max-width: 1200px) {
    .center-content,
    .popup-content {
        min-width: 600px;
        max-width: 600px;
    }
}

@media (max-width: 900px) {
    .app-container {
        flex-direction: column;
    }
    
    #left-column,
    #right-column {
        width: 100%;
        height: auto;
        border-right: none;
        border-left: none;
        border-bottom: 1px solid #ddd;
        flex-direction: row;
        justify-content: center;
    }
    
    #center-column {
        flex: 1;
        padding-top: 50px;
    }
    
    .center-content,
    .popup-content {
        min-width: 95%;
        max-width: 95%;
    }
}



.error-note {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.demo-note {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.error h3 {
    color: #721c24;
    margin-bottom: 15px;
}

.error ul {
    margin: 10px 0 10px 20px;
}

.error li {
    margin-bottom: 5px;
}



/* Стили для отображения QR кода под кнопкой */
.qr-display-container {
    margin-top: 20px;
    padding: 0px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.qr-display-container h4 {
    margin-bottom: 10px;
    color: #495057;
    font-size: 16px;
}

.qr-preview {
    width: 150px;
    height: 150px;
    max-width: 100%;
    border: 5px solid white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: block;
}

.qr-note {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Стили для всплывающего окна с QR кодом */
.qr-image-large {
    max-width: 400px;
    width: 100%;
    height: auto;
    border: 15px solid white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 20px auto;
    display: block;
}

.qr-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
}

.external-qr {
    text-align: center;
    margin-top: 20px;
}

.external-qr .qr-image {
    max-width: 300px;
    margin: 20px auto;
}

/* История QR кодов в правой колонке */
.qr-history-item {
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.qr-history-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.qr-history-item p {
    margin: 5px 0;
    font-size: 12px;
    color: #6c757d;
}