/* saved-work.css */

/* Main Container */
.sw-container {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

/* Header */
.sw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.sw-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
}

/* Buttons */
.sw-button {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.sw-button-secondary {
    background-color: #f8f9fa;
    color: #212529;
    border: 1px solid #dee2e6;
}

.sw-button-secondary:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.sw-button-danger {
    background-color: #dc3545;
    color: white;
}

.sw-button-danger:hover {
    background-color: #c82333;
}

.sw-button-danger:disabled {
    background-color: #f1aeb5;
    cursor: not-allowed;
}

/* Filters */
.sw-filters {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sw-filter-label {
    font-weight: 500;
    color: #495057;
}

.sw-filter-select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    background-color: white;
    font-size: 14px;
    min-width: 200px;
}

/* Table Container */
.sw-table-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* Table */
.sw-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.sw-table th {
    background-color: #FF6B3D;
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 500;
}

.sw-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.sw-table tbody tr:last-child td {
    border-bottom: none;
}

.sw-table tbody tr:hover {
    background-color: #f8f9fa;
}

.sw-table tbody tr.selected {
    background-color: #e7f1ff;
}

.sw-table input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

/* Modal */
.sw-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.sw-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.sw-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sw-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
}

.sw-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    line-height: 1;
}

.sw-modal-close:hover {
    color: #495057;
}

.sw-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    border-bottom: 1px solid #e9ecef;
}

.sw-modal-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Output cell */
.sw-output-cell {
    cursor: pointer;
    transition: color 0.2s;
}

.sw-output-cell:hover {
    color: #4a6fa5;
}

/* Responsive */
@media (max-width: 768px) {
    .sw-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sw-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sw-table th, .sw-table td {
        padding: 10px 12px;
    }
    
    .sw-modal-content {
        width: 95%;
    }
}