/* Table Styles with update- prefix */
.update-container {
    /* padding: 20px; */
    background-color: white;
    min-height: 100vh;
}

.update-table-wrapper {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.update-table-wrapper:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.update-data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-family: Arial, sans-serif;
}

.update-table-header {
    background-color: #f8f9fa;
}

.update-header-row {
    border-bottom: 2px solid #e9ecef;
}

.update-header-cell {
    width: 50px;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.update-table-body {
    background-color: white;
}

.update-table-row {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.update-table-row:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.update-table-row:last-child {
    border-bottom: none;
}


.update-table-cell {
    padding: 16px 12px;
    text-align: left;
    color: #495057;
    font-size: 14px;
    vertical-align: middle;
}
.btn-inline {
    display: flex;
    align-items: center;
    justify-self: center;
    gap: 12px; /* Adjust spacing as needed */
  }

.update-actions-cell {
    text-align: center;
    width: 120px;
}

.update-action-btn {
    /* background: none; */
    border: none;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}
td, th {
    text-align: center !important;
}

.update-edit-btn {
    color: #007bff;
}

.update-edit-btn:hover {
    background-color: #e3f2fd;
    color: #0056b3;
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.update-delete-btn {
    color: #dc3545;
}

.update-delete-btn:hover {
    background-color: #ffebee;
    color: #c82333;
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.update-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.update-status-active {
    background-color: #d4edda;
    color: #155724;
}

.update-status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

/* Responsive table */
@media (max-width: 768px) {
    .update-table-wrapper {
        overflow-x: auto;
    }
    
    .update-data-table {
        min-width: 600px;
    }
    
    .update-table-cell {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .update-header-cell {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .update-action-btn {
        padding: 6px 8px;
        font-size: 14px;
    }
}

/* Modal Styles */
.update-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.update-modal-content {
    background-color: white;
    margin: auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: update-modal-slide-in 0.3s ease-out;
    overflow: hidden;
}

.update-delete-modal-content {
    max-width: 400px;
}

@keyframes update-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.update-modal-header {
    background-color: #f8f9fa;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.update-modal-title {
    margin: 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.update-modal-close {
    color: #6c757d;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.update-modal-close:hover {
    color: #495057;
}

.update-modal-body {
    padding: 24px;
}

.update-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #f8f9fa;
}

/* Form Styles */
.update-form-group {
    margin-bottom: 20px;
}

.update-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
}

.update-form-group input,
.update-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.update-form-group input:focus,
.update-form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.update-form-group input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Button Styles */
.update-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.update-btn-primary {
    background-color: #007bff;
    color: white;
}

.update-btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.update-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.update-btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.update-btn-danger {
    background-color: #dc3545;
    color: white;
}

.update-btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.truncate {
    white-space: nowrap;         /* Keep text on one line */
    overflow: hidden;            /* Hide overflow */
    text-overflow: ellipsis;     /* Add ellipsis (...) */
  }

/* Delete Modal Specific Styles */
.update-delete-message {
    text-align: center;
    padding: 20px 0;
}

.update-warning-icon {
    font-size: 48px;
    color: #ffc107;
    margin-bottom: 16px;
    display: block;
}

.update-delete-message p {
    margin: 8px 0;
    color: #495057;
    font-size: 16px;
}

.update-delete-details {
    color: #6c757d !important;
    font-size: 14px !important;
    font-style: italic;
}

/* Notification Styles */
.update-notification {
    background-color: #27ae60;
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    animation: update-notification-slide-in 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.update-notification-success {
    background-color: #28a745;
}

@keyframes update-notification-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .update-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .update-modal-header,
    .update-modal-body,
    .update-modal-footer {
        padding: 16px;
    }
    
    .update-modal-footer {
        flex-direction: column;
    }
    
    .update-btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .update-notification {
        right: 10px;
        left: 10px;
        top: 10px;
    }
} 



/* schedule */
  /* Enhanced calendar styling for better user experience */
  .fc-event-draggable {
    cursor: move !important;
    transition: all 0.2s ease;
}

.fc-event-draggable:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.fc-event-resizable {
    cursor: ns-resize;
}

.fc-event-resizable .fc-resizer {
    background: rgba(255,255,255,0.8);
    border: 1px solid #ccc;
    border-radius: 2px;
}

.delete-event {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.delete-event:hover {
    opacity: 1;
    color: #d32f2f !important;
}

/* View buttons styling */
.fc-button {
    background: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
    transition: all 0.2s ease;
}

.fc-button:hover {
    background: #0056b3 !important;
    border-color: #0056b3 !important;
}

.fc-button-active {
    background: #28a745 !important;
    border-color: #28a745 !important;
}

/* Calendar header improvements */
.fc-toolbar {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Event styling improvements */
.fc-event {
    border-radius: 3px;
    font-weight: 500;
}

/* List view improvements */
.fc-list-item {
    border-left: 4px solid #007bff;
    margin-bottom: 5px;
}

.fc-list-item:hover {
    background-color: #f8f9fa;
}

/* Month view improvements */
.fc-day-grid-event {
    border-radius: 2px;
    margin: 1px 0;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }
}


  /* Make the Enregistrer button green */
  .fc-enregistrer-button {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

.fc-enregistrer-button:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

.fc-enregistrer-button:focus {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}