.sp-manager-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.manager-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background: #f1f1f1;
    border: none;
    border-right: 1px solid #ddd;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: #2271b1;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.upload-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.sp-upload-btn, .file-browser-actions button {
    padding: 10px 15px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.sp-upload-btn:hover, .file-browser-actions button:hover {
    background: #135e96;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #f1f1f1;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #2271b1;
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}

#sp-file-list, #sp-files-container {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.file-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-item:last-child {
    border-bottom: none;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    display: block;
    margin-bottom: 3px;
}

.file-meta {
    font-size: 12px;
    color: #666;
}

.file-actions button {
    padding: 5px 10px;
    margin-left: 5px;
    font-size: 12px;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.delete-btn {
    background: #dc3232;
    color: white;
}

.delete-btn:hover {
    background: #a00;
}

.success {
    color: #46b450;
}

.error {
    color: #dc3232;
}

#sp-loading-files {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 15px;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notice {
    padding: 10px 15px;
    margin: 15px 0;
    border-left: 4px solid;
    border-radius: 2px;
}

.notice-success {
    background: #f0f9eb;
    border-left-color: #46b450;
}

.notice-error {
    background: #fcf0f1;
    border-left-color: #dc3232;
}

.sp-notice {
    padding: 15px;
    background: #f5f5f5;
    border-left: 4px solid #2271b1;
    margin: 20px 0;
}