/* Container Layout */
.wc-sc-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #3c434a;
}

/* Sidebar Styles */
.wc-sc-sidebar {
    flex: 1;
    min-width: 250px;
    max-width: 320px;
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.wc-sc-sidebar-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.25em;
    font-weight: 600;
    color: #1d2327;
    border-bottom: 1px solid #f0f0f1;
    padding-bottom: 10px;
}

.wc-sc-tree, .wc-sc-subcategories {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.wc-sc-subcategories {
    padding-left: 18px;
    margin-top: 5px;
    border-left: 1px dashed #dcdcde;
    margin-left: 9px;
}

.wc-sc-category-item {
    margin-bottom: 8px;
    line-height: 1.5;
}

.wc-sc-category-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.wc-sc-category-header:hover {
    background-color: #f6f7f7;
    color: #2271b1;
}

.wc-sc-category-header.active {
    background-color: #f0f6fc;
    color: #2271b1;
    font-weight: 600;
}

.wc-sc-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-weight: bold;
    user-select: none;
    color: #8c8f94;
    margin-right: 8px;
    background: #f0f0f1;
    border-radius: 3px;
    font-size: 12px;
}

.wc-sc-toggle-icon.empty {
    background: transparent;
}

.wc-sc-category-name {
    flex: 1;
}

/* Main Content Area */
.wc-sc-content {
    flex: 2;
    min-width: 300px;
}

.wc-sc-placeholder, .wc-sc-no-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #646970;
    background: #f6f7f7;
    padding: 50px 20px;
    border: 1px dashed #c3c4c7;
    text-align: center;
    border-radius: 8px;
    min-height: 200px;
}

.wc-sc-placeholder p, .wc-sc-no-products p {
    margin: 0;
    font-size: 1.1em;
}

.wc-sc-table-header {
    margin-bottom: 20px;
}

.wc-sc-table-title {
    margin: 0;
    font-size: 1.5em;
    color: #1d2327;
}

/* Service Table */
.wc-sc-table-responsive {
    overflow-x: auto;
}

.wc-sc-products-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dcdcde;
}

.wc-sc-products-table th, .wc-sc-products-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: middle;
}

.wc-sc-products-table th {
    background: #f6f7f7;
    font-weight: 600;
    color: #1d2327;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.wc-sc-products-table tr:last-child td {
    border-bottom: none;
}

.wc-sc-products-table tbody tr:hover {
    background-color: #f9f9f9;
}

.wc-sc-price {
    font-weight: 600;
    color: #00a32a;
}

/* Action Button */
.wc-sc-button {
    display: inline-block;
    padding: 10px 18px;
    background-color: #2271b1;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    border: 1px solid #2271b1;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
}

.wc-sc-button:hover, .wc-sc-button:focus, .wc-sc-button:active {
    background-color: #135e96;
    border-color: #135e96;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wc-sc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    color: #8c8f94;
    min-height: 200px;
}

.wc-sc-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: wc-sc-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes wc-sc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Handling */
@media (max-width: 768px) {
    .wc-sc-container {
        flex-direction: column;
    }
    .wc-sc-sidebar, .wc-sc-content {
        max-width: none;
        width: 100%;
    }
    .wc-sc-sidebar {
        margin-bottom: 20px;
    }
    .wc-sc-products-table th, .wc-sc-products-table td {
        padding: 12px 10px;
    }
}
