/* Warranty Modal Styles */
.warranty-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.warranty-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.warranty-modal-header {
    background-color: #0073aa;
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.warranty-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.warranty-modal-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.warranty-modal-close:hover {
    opacity: 0.7;
}

.warranty-modal-body {
    padding: 30px;
}

/* Form Styles */
.warranty-modal-body .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.warranty-modal-body .form-group {
    flex: 1;
    margin-bottom: 15px;
}

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

.warranty-modal-body .form-group input,
.warranty-modal-body .form-group select,
.warranty-modal-body .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.warranty-modal-body .form-group input:focus,
.warranty-modal-body .form-group select:focus,
.warranty-modal-body .form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.warranty-modal-body .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-cancel,
.btn-save {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-cancel {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.btn-cancel:hover {
    background-color: #e1e1e1;
}

.btn-save {
    background-color: #0073aa;
    color: white;
}

.btn-save:hover {
    background-color: #005a87;
}

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

/* Table Row Hover Effect */
.warranty-claims-table .warranty-row:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .warranty-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .warranty-modal-body .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-save {
        width: 100%;
    }
}

/* Loading State */
.btn-save.loading {
    position: relative;
    color: transparent;
}

.btn-save.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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