.sps-add-to-project {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sps-add-to-project:hover {
    background-color: #45a049;
}

.sps-add-to-project.sps-selected {
    background-color: #f44336;
}

.sps-add-to-project.sps-selected:hover {
    background-color: #da190b;
}

#sps-save-project {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin: 20px 0;
    transition: background-color 0.3s;
}

#sps-save-project:hover {
    background-color: #1976D2;
}

#sps-save-project:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Modal styles */
.sps-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.sps-modal.sps-modal-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sps-modal-content {
    background-color: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: auto;
    max-height: 90vh;
    overflow-y: auto;
}

.sps-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    z-index: 2;
}

@media (max-width: 600px) {
    .sps-modal-content {
        margin: 10px auto 0 auto !important;
        padding: 16px 8px;
    }
}

.sps-form-group {
    margin-bottom: 15px;
}

.sps-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.sps-form-group input,
.sps-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sps-form-group textarea {
    height: 100px;
    resize: vertical;
}

.sps-submit-btn,
.sps-request-offer-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
    transition: background-color 0.3s;
}

.sps-submit-btn {
    background-color: #2196F3;
}

.sps-submit-btn:hover {
    background-color: #1976D2;
}

.sps-request-offer-btn:hover {
    background-color: #45a049;
}

.sps-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal !important;
}

.sps-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Selected products list styles */
.sps-selected-products-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sps-selected-product {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.sps-selected-product-image {
    width: 50px;
    height: 50px;
}

.sps-selected-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.sps-selected-product-info {
    flex: 1;
    min-width: 0;
}

.sps-selected-product-info h4 {
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sps-selected-product-price {
    margin: 5px 0 0;
    font-size: 13px;
    color: #666;
}

.sps-remove-product {
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    transition: background-color 0.3s;
}

.sps-remove-product:hover {
    background: #e0e0e0;
    color: #333;
}

.sps-empty-list {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Project status colors */
.project-status-saved {
    color: #2196F3;
}

.project-status-requested-offer {
    color: #FF9800;
}

.project-status-project-declared {
    color: #9C27B0;
}

.project-status-project-accepted {
    color: #4CAF50;
}

.project-status-project-completed {
    color: #607D8B;
}

/* Form message and loading states */
.sps-message {
    margin: 10px 0;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
}

.sps-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #666;
}

.sps-loading:before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #666;
    border-radius: 50%;
    animation: sps-spin 1s linear infinite;
}

@keyframes sps-spin {
    to {
        transform: rotate(360deg);
    }
}

.sps-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 4px;
}

.sps-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 4px;
}

/* Floating notification animation */
.sps-floating-notification {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Section styles */
.sps-section {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.sps-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.sps-section-name {
    font-weight: bold;
    font-size: 1.1em;
    border: none;
    background: transparent;
    width: 70%;
    padding: 4px;
    margin: 0;
}

.sps-section-name:focus {
    outline: none;
    background: #fff;
    border-radius: 4px;
}

.sps-remove-section {
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.sps-remove-section:hover {
    background: #e0e0e0;
    color: #333;
}

.sps-section-products {
    list-style: none;
    padding: 12px;
    margin: 0;
    min-height: 60px;
}

.sps-empty-section {
    text-align: center;
    padding: 20px;
    color: #888;
    font-style: italic;
    border: 2px dashed #e0e0e0;
    border-radius: 4px;
    margin: 8px 0;
}

/* Product item styles */
.sps-selected-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.sps-selected-product:hover {
    border-color: #bdbdbd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sps-drag-handle {
    cursor: move;
    color: #bdbdbd;
    font-size: 18px;
    padding: 4px;
    transition: color 0.2s ease;
}

.sps-selected-product:hover .sps-drag-handle {
    color: #757575;
}

.sps-product-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.sps-product-qty {
    width: 60px;
    padding: 4px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
}

.sps-product-price {
    color: #666;
    font-size: 0.9em;
}

/* Sortable styles */
.sps-sortable-placeholder {
    border: 2px dashed #bdbdbd;
    background: #f5f5f5;
    margin-bottom: 8px;
    border-radius: 6px;
}

.ui-sortable-helper {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Add Section button */
#sps-add-section {
    background: #f5f5f5;
    border: 2px dashed #bdbdbd;
    color: #666;
    padding: 12px;
    width: 100%;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

#sps-add-section:hover {
    background: #eeeeee;
    border-color: #9e9e9e;
    color: #333;
} 