/* Current Procedures Section Styles */

.procedures-section {
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.procedures-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 18px 25px;
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    border-radius: 10px;
    border: 2px solid #0D47A1;
    border-bottom: 4px solid #01579B;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.procedures-header h3 {
    margin: 0;
    color: #ffffff !important;
    font-size: 1.5em;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.procedures-header h3 i {
    color: #ffffff !important;
    font-size: 1.2em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.procedures-header h3 .en,
.procedures-header h3 .ar {
    color: #ffffff !important;
}

#addProcedureBtn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #2196F3 0%, #1976d2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

#addProcedureBtn:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

#addProcedureBtn i {
    font-size: 1.1em;
}

/* Procedures Container */
#proceduresContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* No Procedures State */
.no-procedures {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f5f5f5;
    border-radius: 12px;
    border: 2px dashed #ccc;
}

.no-procedures p {
    margin: 8px 0;
    font-size: 1.1em;
    color: #666;
}

/* Procedure Box */
.procedure-box {
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.procedure-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    opacity: 0.05;
    font-family: 'Font Awesome 6 Free';
    content: '\f489'; /* syringe icon */
    font-size: 60px;
    font-weight: 900;
    transform: rotate(-15deg);
    pointer-events: none;
}

.procedure-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Procedure Header */
.procedure-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.procedure-header h4 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    line-height: 1.4;
}

.procedure-header h4 i {
    font-size: 1.1em;
}

.btn-remove {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
    opacity: 0.8;
    flex-shrink: 0;
}

.btn-remove:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Procedure Details */
.procedure-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.95em;
    line-height: 1.6;
}

.detail-item i {
    width: 20px;
    text-align: center;
    margin-top: 3px;
    flex-shrink: 0;
}

.detail-item strong {
    font-weight: 600;
    margin-right: 4px;
}

.detail-item span {
    color: #333;
}

.detail-item.notes {
    flex-direction: column;
    gap: 5px;
}

.detail-item.notes p {
    margin: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    font-size: 0.9em;
    line-height: 1.5;
    color: #555;
}

/* Add Procedure Modal */
#addProcedureModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.procedure-modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.procedure-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2196F3;
}

.procedure-modal-header h3 {
    margin: 0;
    color: #1976d2;
    font-size: 1.5em;
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 1.8em;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

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

.procedure-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.modal-form-group input,
.modal-form-group select,
.modal-form-group textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
}

.modal-form-group input:focus,
.modal-form-group select:focus,
.modal-form-group textarea:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

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

.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.procedure-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-modal-cancel,
.btn-modal-save {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-cancel {
    background: #f5f5f5;
    color: #666;
}

.btn-modal-cancel:hover {
    background: #e0e0e0;
    color: #333;
}

.btn-modal-save {
    background: linear-gradient(135deg, #4CAF50 0%, #388e3c 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-modal-save:hover {
    background: linear-gradient(135deg, #45a049 0%, #2e7d32 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    #proceduresContainer {
        grid-template-columns: 1fr;
    }
    
    .procedures-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    #addProcedureBtn {
        width: 100%;
        justify-content: center;
    }
    
    .time-inputs {
        grid-template-columns: 1fr;
    }
    
    .procedure-modal-content {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    #addProcedureBtn,
    .btn-remove {
        display: none !important;
    }
    
    .procedure-box {
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}
