div.input-container {
    position: relative;
    display: flex;
    margin-bottom: 12px;
    gap: 12px;
}

input,select {
    padding: 12px;
    border: 1px solid #d3d3d3;
    font-size: 16px;
    border-radius: 10px;
    outline: none;
}
input {
    width: 100%;
}
select {
    width: 40%;
}
input:hover,select:hover {
    border-color: #353535;
}
input:focus:not(:hover),select:focus:not(:hover) {
    border-color: #212121;
}
div.toggle-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    gap: 10px;
}
div.toggle-buttons button {
    height: 40px;
    font-size: 15px;
    padding: 0 14px;
    border: 0;
    outline: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    svg {
        height: 18px;
        width: 18px;
        display: flex;
        overflow: visible;
    }
}
div.toggle-buttons button:nth-child(1) {
    width: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d3d3d3;
    cursor: pointer;
}
div.toggle-buttons button:nth-child(1):hover {
    background-color: #9b9b9b;
}
div.toggle-buttons button:nth-child(2) {
    width: 180px;
    /*background-color: #8611c0;*/
    background-color: rgba(96, 23, 197, 1);

    color: #fff;
    opacity: 0.7;
}
div.toggle-buttons button:nth-child(2).active {
    opacity: 1;
    cursor: pointer;
}
div.toggle-buttons button:nth-child(2).active:hover {
    opacity: 0.8;
}
/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h2 {
    margin: 0;
    color: #5F17C5;
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: white;
}

/* Form Styles */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #5F17C5;
    box-shadow: 0 0 0 2px rgba(95, 23, 197, 0.2);
}

/* Card Edit Items */
.card-edit-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.card-edit-item:last-child {
    margin-bottom: 0;
}

.card-edit-item h4 {
    margin: 0 0 10px 0;
    color: #5F17C5;
    font-size: 16px;
}

/* Buttons */
.btn-save {
    background: #17C55F;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    justify-content: center;
}

.btn-save:hover:not(:disabled) {
    background: #15b355;
}

.btn-save:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.btn-cancel:hover {
    background: #5a6268;
}

/* Spinner */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

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

/* Status Message */
.status-message {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Body lock when modal open */
body.modal-open {
    overflow: hidden;
}

/* Make sure edit button is visible */
.edit-btn {
    background: #5F17C5;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    font-size: 14px;
}

.edit-btn:hover {
    background: #4a129b;
}