/* ============================================
   CSS مخصص لكل صفحة منفصلة بـ classes مختلفة
   ============================================ */

/* ===== CSS للصفحة index.blade.php ===== */
.appointments-index,
.appointment-show,
.appointment-edit {
    direction: ltr !important;
    text-align: left !important;
}

.appointments-index {
    --primary-blue: #0d47a1;
    --secondary-blue: #667eea;
    --success-green: #2ecc71;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
}

.appointments-index .card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.15);
    transition: all 0.4s ease;
}

.appointments-index .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(13, 71, 161, 0.25);
}

.appointments-index .card-header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: 20px 20px 0 0 !important;
    color: white;
    padding: 20px 25px;
}

.appointments-index .stats-card {
    border-radius: 15px;
    padding: 20px;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.appointments-index .stats-card:hover {
    transform: translateY(-8px) scale(1.05);
}

.appointments-index .stats-card.pending {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.appointments-index .stats-card.confirmed {
    background: linear-gradient(135deg, var(--success-green) 0%, #27ae60 100%);
}

.appointments-index .stats-card.completed {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
}

.appointments-index .stats-card.cancelled {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.appointments-index .table thead th {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    border: none;
    padding: 15px;
}

.appointments-index .table tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.appointments-index .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

.appointments-index .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.4);
}

.appointments-index .badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%) !important;
}

/* ===== CSS للصفحة show.blade.php ===== */
.appointment-show {
    --primary-blue: #0d47a1;
    --secondary-blue: #667eea;
    --success-green: #2ecc71;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
}

.appointment-show .card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.15);
}

.appointment-show .card-header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: 20px 20px 0 0 !important;
    color: white;
    padding: 20px 25px;
}

.appointment-show .info-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.appointment-show .info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.appointment-show .info-item strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.appointment-show .service-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.appointment-show .notes-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 15px;
    padding: 25px;
    border-left: 5px solid var(--secondary-blue);
}

.appointment-show .notes-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.appointment-show .quick-actions {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.appointment-show .status-change {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08) 0%, rgba(39, 174, 96, 0.08) 100%);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.appointment-show .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 12px 25px;
    transition: all 0.3s ease;
    border: none;
}

.appointment-show .btn-success {
    background: linear-gradient(135deg, var(--success-green) 0%, #27ae60 100%);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.appointment-show .btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.appointment-show .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

.appointment-show .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.4);
}

.appointment-show .btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.appointment-show .btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* ===== CSS للصفحة edit.blade.php ===== */
.appointment-edit {
    --primary-blue: #0d47a1;
    --secondary-blue: #667eea;
    --success-green: #2ecc71;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
}

.appointment-edit .card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.15);
}

.appointment-edit .card-header {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-radius: 20px 20px 0 0 !important;
    color: white;
    padding: 20px 25px;
}

.appointment-edit .form-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 5px solid var(--secondary-blue);
}

.appointment-edit .section-title {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.appointment-edit .form-control, 
.appointment-edit .form-select {
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.appointment-edit .form-control:focus, 
.appointment-edit .form-select:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
}

.appointment-edit .form-label {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.appointment-edit .info-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.appointment-edit .form-actions {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.appointment-edit .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 12px 25px;
    transition: all 0.3s ease;
    border: none;
}

.appointment-edit .btn-success {
    background: linear-gradient(135deg, var(--success-green) 0%, #27ae60 100%);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.appointment-edit .btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.appointment-edit .btn-info {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, #3498db 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.appointment-edit .btn-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.appointment-edit .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.appointment-edit .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

/* ===== CSS مشترك للجميع ===== */
.appointments-index .modal-content,
.appointment-show .modal-content,
.appointment-edit .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 15px 50px rgba(13, 71, 161, 0.3);
    direction: ltr !important;
    text-align: left !important;
}

.appointments-index .modal-header,
.appointment-show .modal-header,
.appointment-edit .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    border: none;
    padding: 20px 25px;
}

.appointments-index .alert,
.appointment-show .alert,
.appointment-edit .alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.appointments-index .alert-success,
.appointment-show .alert-success,
.appointment-edit .alert-success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15) 0%, rgba(39, 174, 96, 0.15) 100%);
    color: #1e7e34;
    border-left: 4px solid #2ecc71;
}

/* Responsive */
@media (max-width: 768px) {
    .appointments-index .stats-card,
    .appointment-show .info-card,
    .appointment-edit .form-section {
        margin-bottom: 15px;
    }
    
    .appointments-index .btn-group,
    .appointment-show .quick-actions .row,
    .appointment-edit .form-actions .d-flex {
        flex-direction: column;
    }
    
    .appointments-index .btn-group .btn,
    .appointment-show .quick-actions .btn,
    .appointment-edit .form-actions .btn {
        margin: 2px 0;
        width: 100%;
    }
}