.app-container {
    display: flex;
    height: 100%;
}

.sidebar {
    width: 200px;
    background-color: #2c3e50;
    padding: 20px;
}

.left-sidebar {
    border-right: 1px solid #34495e;
}

.right-sidebar {
    border-left: 1px solid #34495e;
}

.logo-main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: white;
}

.content-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #7f8c8d;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #c0392b;
}

/* Модальное окно */
.logo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.logo-modal-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
}

/* Загрузка изображений */
.upload-section {
    margin-bottom: 30px;
}

.image-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.image-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.image-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.image-info {
    flex: 1;
}

.image-date {
    color: #6c757d;
    font-size: 14px;
}

/* Редактор изображений */
.editor-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.canvas-container {
    position: relative;
    border: 1px solid #ddd;
    overflow: hidden;
}

#editor-canvas {
    max-width: 100%;
    max-height: 70vh;
    display: block;
}

.crop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.crop-area {
    position: absolute;
    border: 2px solid #3498db;
    cursor: move;
}

.resize-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: white;
    border: 2px solid #3498db;
    border-radius: 50%;
    pointer-events: all;
}

.resize-n { top: -6px; left: 50%; transform: translateX(-50%); }
.resize-ne { top: -6px; right: -6px; }
.resize-e { top: 50%; right: -6px; transform: translateY(-50%); }
.resize-se { bottom: -6px; right: -6px; }
.resize-s { bottom: -6px; left: 50%; transform: translateX(-50%); }
.resize-sw { bottom: -6px; left: -6px; }
.resize-w { top: 50%; left: -6px; transform: translateY(-50%); }
.resize-nw { top: -6px; left: -6px; }

.editor-controls {
    display: flex;
    gap: 15px;
}

/* Drag and drop зона */
.drop-zone {
    border: 2px dashed #3498db;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.drop-zone:hover {
    border-color: #2980b9;
}

.drop-zone.dragover {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.1);
}

/* Полноэкранное превью */
.fullscreen-modal {
    background-color: rgba(0, 0, 0, 0.95);
}

.fullscreen-modal .logo-modal-content {
    background: transparent;
    padding: 0;
    max-width: 100%;
    max-height: 100%;
}

.fullscreen-modal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}