/* Appointment Details Panel Styles */
.appointment-details-panel {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.appointment-details-panel.show {
    right: 0;
}

.appointment-details-panel .panel-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.appointment-details-panel .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.appointment-details-panel .back-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.appointment-details-panel .back-btn:hover {
    background-color: #f3f4f6;
}

.appointment-details-panel .back-btn i {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.appointment-details-panel .appointment-id-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.appointment-details-panel .appointment-id-label {
    font-family: monospace;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.appointment-details-panel .copy-appointment-id {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.appointment-details-panel .copy-appointment-id:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.appointment-details-panel .copy-appointment-id i {
    width: 14px;
    height: 14px;
}

.appointment-details-panel .panel-close {
    position: absolute;
    top: 24px;
    right: 5px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.appointment-details-panel .panel-close:hover {
    background-color: #f3f4f6;
}

.appointment-details-panel .panel-close i {
    width: 20px;
    height: 20px;
}

.appointment-details-panel .panel-body {
    padding: 24px;
}

.appointment-details-panel .appointment-status-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.appointment-details-panel .status-badge-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.appointment-details-panel .status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.appointment-details-panel .status-badge.status-scheduled {
    background: #dbeafe;
    color: #1e40af;
}

.appointment-details-panel .status-badge.status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.appointment-details-panel .status-badge.status-completed {
    background: #e5e7eb;
    color: #374151;
}

.appointment-details-panel .status-badge.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.appointment-details-panel .appointment-type-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.appointment-details-panel .appointment-actions-top {
    display: flex;
    gap: 8px;
}

.appointment-details-panel .edit-appointment-btn,
.appointment-details-panel .cancel-appointment-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.appointment-details-panel .edit-appointment-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
}

.appointment-details-panel .edit-appointment-btn:hover {
    background: #e5e7eb;
}

.appointment-details-panel .cancel-appointment-btn {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.appointment-details-panel .cancel-appointment-btn:hover {
    background: #fecaca;
}

.appointment-details-panel .customer-info-section {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.appointment-details-panel .customer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.appointment-details-panel .avatar-initial {
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.appointment-details-panel .customer-details {
    flex: 1;
}

.appointment-details-panel .customer-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.appointment-details-panel .customer-phone,
.appointment-details-panel .customer-email {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 2px;
}

.appointment-details-panel .appointment-info-section {
    margin-bottom: 32px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.appointment-details-panel .appointment-datetime {
    margin-bottom: 20px;
}

.appointment-details-panel .datetime-label,
.appointment-details-panel .location-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.appointment-details-panel .datetime-value,
.appointment-details-panel .duration-value,
.appointment-details-panel .location-value {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #374151;
    margin-bottom: 6px;
}

.appointment-details-panel .datetime-value i,
.appointment-details-panel .duration-value i,
.appointment-details-panel .location-value i {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: #6b7280;
}

.appointment-details-panel .services-section {
    margin-bottom: 32px;
}

.appointment-details-panel .services-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.appointment-details-panel .services-list {
    margin-bottom: 16px;
}

.appointment-details-panel .service-item {
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
}

.appointment-details-panel .service-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.appointment-details-panel .service-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.appointment-details-panel .service-price {
    font-size: 16px;
    font-weight: 600;
    color: #059669;
}

.appointment-details-panel .service-details {
    display: flex;
    gap: 16px;
}

.appointment-details-panel .service-time,
.appointment-details-panel .service-staff {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6b7280;
}

.appointment-details-panel .service-time i,
.appointment-details-panel .service-staff i {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

.appointment-details-panel .services-total {
    padding: 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.appointment-details-panel .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.appointment-details-panel .total-label {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.appointment-details-panel .total-value {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

.appointment-details-panel .appointment-notes-section {
    margin-bottom: 32px;
}

.appointment-details-panel .appointment-notes-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.appointment-details-panel .notes-content {
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.appointment-details-panel .appointment-actions-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    display:non!important;
}

.appointment-details-panel .action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.appointment-details-panel .action-btn i {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.appointment-details-panel .action-btn.primary {
    background: #3b82f6;
    color: white;
}

.appointment-details-panel .action-btn.primary:hover {
    background: #2563eb;
}

.appointment-details-panel .action-btn.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.appointment-details-panel .action-btn.secondary:hover {
    background: #e5e7eb;
}

.appointment-details-panel .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-size: 16px;
    color: #6b7280;
}

.appointment-details-panel .empty-state {
    text-align: center;
    padding: 60px 20px;
}

.appointment-details-panel .empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.appointment-details-panel .empty-state p {
    font-size: 14px;
    color: #6b7280;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .appointment-details-panel {
        width: 100%;
        right: -100%;
    }
}