/* Side panel styles */
.side-panel {
    width: 300px;
    min-width: 300px;
    background: #111111;
    border-radius: 12px;
    padding: 20px;
    height: calc(100vh - 40px);
    position: sticky;
    top: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    color: #b19cd9;
}

.side-panel h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    background: linear-gradient(to right, #ff00ff, #9370DB, #8A2BE2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 5px rgba(147, 112, 219, 0.3);
}

.processed-files {
    margin-top: 15px;
}

.section-header {
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #4a148c;
    color: #d1c4e9;
}

.processed-file, .component-item {
    background-color: #151515;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.processed-file:hover, .component-item:hover {
    background-color: #2a2a2a;
}

.component-item {
    border-left: 3px solid #7e57c2;
}

.component-name {
    font-weight: bold;
    color: #d1c4e9;
    display: block;
}

/* Стили для модального окна */
.component-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #151515;
    border-radius: 8px;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #4a148c;
    color: #b19cd9;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #b19cd9;
}

.close-modal:hover {
    color: #d1c4e9;
}

.modal-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.modal-section h3 {
    color: #d1c4e9;
    margin-bottom: 10px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.price-table th, .price-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.price-table th {
    background-color: #1a1a1a;
    color: #d1c4e9;
}

.export-btn {
    background-color: #7b1fa2;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

.export-btn:hover {
    background-color: #9c27b0;
}

.no-files {
    color: #777;
    font-style: italic;
    padding: 10px;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.file-name {
    font-size: 14px;
    color: #b19cd9;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    white-space: normal;
}

.file-size {
    font-size: 12px;
    color: #8a8aa0;
}

/* Tabs for file categories */
.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 12px;
}

.tab-button {
    padding: 8px 6px;
    background-color: #1f1f1f;
    border: 1px solid #4a148c;
    border-radius: 4px;
    color: #b19cd9;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.tab-button:hover {
    background-color: #2d2d2d;
}

.tab-button.active {
    background-color: #4a148c;
    color: #fff;
}