/* =========================================
   SISTEMA DE DISEÑO: MAARTI NAILS ADMIN
   ========================================= */

:root {
    --primary-blue: #2d3748;
    --accent-pink: #fbcfe8;
    --accent-pink-dark: #ec4899;
    --bg-white: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #f1f5f9;
    --shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* --- Constellation Background --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 2px 2px, #f1f5f9 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(241, 245, 249, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(241, 245, 249, 0.5) 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: -1;
    opacity: 0.5;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

/* --- Premium Header Card --- */
.admin-header-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-premium);
    margin-bottom: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Left: Logo & Editar */
.header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff5f7 0%, #fee2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(251, 207, 232, 0.3);
    overflow: hidden;
    position: relative;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder-text {
    font-family: 'Dancing Script', cursive;
    color: #db2777;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.1;
}

.edit-btn {
    background: #c08497;
    color: white;
    border: none;
    padding: 0.4rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(192, 132, 151, 0.2);
}

.edit-btn:hover {
    background: #b07386;
    transform: translateY(-1px);
}

/* Center: Title */
.header-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.header-title {
    font-size: 2.2rem;
    font-weight: 500;
    color: #334155;
    margin: 0;
}

.nail-icon {
    width: 45px;
    height: 45px;
}

/* Right: Icons */
.header-right {
    display: flex;
    gap: 1rem;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #d8b4bc;
    transition: all 0.2s;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: #c08497;
    transform: scale(1.1);
}

/* Divider */
.header-divider {
    height: 1px;
    background: #e2e8f0;
    width: 100%;
    margin: 1rem 0;
}

/* Footer: Date/Time */
.header-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 1.1rem;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.separator-dot {
    width: 4px;
    height: 4px;
    background: #94a3b8;
    border-radius: 50%;
    margin: 0 0.5rem;
}

/* --- Rest of existing styles (Cards, Buttons, Calendar) --- */
.card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-premium);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,0,0,0.02);
}

h2 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

/* Calendar Styles */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.calendar-day:hover {
    background: #f8fafc;
}

.calendar-day.selected {
    background: var(--primary-blue);
    color: white;
}

.calendar-day.today {
    font-weight: 800;
    color: var(--primary-blue);
    position: relative;
    border: 1px solid var(--primary-blue);
}

.calendar-day.today.selected {
    color: white;
}

/* Appointments */
.segmented-control {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    position: relative;
}

.segmented-control.main-tabs {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.segmented-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 1;
    border-radius: 10px;
}

.segmented-btn.active {
    background: white;
    color: var(--primary-blue);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.segmented-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(25% - 2px);
    background: white;
    border-radius: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    z-index: 0;
}

#main-tabs-slider {
    width: calc(50% - 4px);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .header-title { font-size: 1.5rem; }
    .nail-icon { width: 30px; height: 30px; }
    .logo-circle { width: 60px; height: 60px; }
}

/* Appt card specific */
.citas-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.appt-card {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-premium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.appt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.appt-time-block {
    min-width: 80px;
    text-align: center;
    border-right: 1.5px solid #f1f5f9;
    margin-right: 1.25rem;
    padding-right: 0.75rem;
    display: flex;
    flex-direction: column;
}

.appt-time-hour {
    font-weight: 800;
    color: var(--primary-blue);
    font-size: 1.15rem;
}

.appt-time-date {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.appt-content {
    flex: 1;
}

.appt-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.appt-client-name {
    font-weight: 700;
    color: var(--primary-blue);
}

.appt-status {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.55rem;
    font-weight: 800;
}

.appt-status.confirmed, .my-appt-status-tag.confirmed { 
    background: #dcfce7; 
    color: #15803d; 
    border: 1px solid #bbf7d0;
}
.appt-status.pending, .my-appt-status-tag.pending { 
    background: #ffedd5; 
    color: #c2410c; 
    border: 1px solid #fed7aa;
}
.appt-status.past, .my-appt-status-tag.past { 
    background: #e0f2fe; 
    color: #0369a1; 
    border: 1px solid #bae6fd;
}
.appt-status.cancelled, .my-appt-status-tag.cancelled { 
    background: #f1f5f9; 
    color: #64748b; 
    border: 1px solid #e2e8f0;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-btn-cancel {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 1px solid #f87171;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-cancel:hover {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.modal-btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    display: block;
    font-size: 1rem;
}

.modal-btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* ===== Custom Confirm Dialog ===== */
.confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.confirm-overlay.active {
    display: flex;
}

.confirm-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.75rem 1.5rem;
    width: 100%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.25s ease;
}

.confirm-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.confirm-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.confirm-message {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.confirm-buttons {
    display: flex;
    gap: 0.75rem;
}

.confirm-btn-no {
    flex: 1;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-btn-no:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.confirm-btn-yes {
    flex: 1;
    padding: 0.75rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-btn-yes:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.confirm-btn-yes.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.confirm-btn-yes.green:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* ===== Post-Cancellation WhatsApp CTA ===== */
.cancel-success-block {
    text-align: center;
    padding: 0.5rem 0;
}

.cancel-success-check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ecfdf5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.cancel-success-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 0.25rem;
}

.cancel-success-sub {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.wa-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    animation: waBounce 2s ease-in-out infinite;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}

.wa-cta-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    animation: waShine 3s ease-in-out infinite;
}

.wa-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    animation: none;
}

@keyframes waBounce {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    15% { 
        transform: translateY(-4px) scale(1.03); 
        box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
    }
    30% { 
        transform: translateY(0) scale(1); 
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
    }
}

@keyframes waShine {
    0%, 65% { left: -60%; }
    100% { left: 120%; }
}

.wa-cta-icon {
    font-size: 1.3rem;
}

.skip-link {
    display: block;
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0.5rem;
    width: 100%;
    transition: color 0.2s;
}

.skip-link:hover {
    color: #64748b;
}
.slot-count {
    font-size: 0.65rem;
    color: #059669;
    font-weight: 700;
    margin-top: 2px;
    background: #ecfdf5;
    padding: 1px 4px;
    border-radius: 4px;
}

.slot-count.confirmed {
    color: #4f46e5;
    background: #eef2ff;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 50px;
}

.day-num {
    font-weight: 600;
}

/* Appointment Dot for Client Page */
.appt-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-pink-dark);
    border-radius: 50%;
    margin-top: 2px;
}

.calendar-day.available {
    background: #fff;
    border: 1.5px solid #d8b4bc;
    color: var(--accent-pink-dark);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(216, 180, 188, 0.2);
}

.calendar-day.available:hover {
    transform: scale(1.08);
    background: var(--accent-pink-light);
    border-color: var(--accent-pink);
    box-shadow: 0 4px 12px rgba(216, 180, 188, 0.4);
    z-index: 2;
}

.calendar-day.disabled {
    opacity: 0.3;
    pointer-events: none;
    background: #f8fafc;
    border: 1px solid transparent;
}

.calendar-day.selected.available {
    background: var(--accent-pink-dark);
    color: white;
    border-color: var(--accent-pink-dark);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(192, 132, 151, 0.3);
}

/* Striking Time Pills */
.time-pill {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-pill:hover {
    background: #fdf2f8;
    border-color: #f9a8d4;
    color: #be185d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(190, 24, 93, 0.1);
}

.time-pill.selected {
    background: linear-gradient(135deg, #c08497 0%, #a67384 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 20px -5px rgba(192, 132, 151, 0.5);
    transform: scale(1.05);
}
/* Success Modal */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-modal-overlay.active .success-modal {
    transform: scale(1) translateY(0);
}

.success-icon-circle {
    width: 80px;
    height: 80px;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.success-message {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-close-btn {
    width: 100%;
    background: var(--accent-pink-dark);
    color: white;
    padding: 1rem;
    border-radius: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.success-close-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Responsiveness */
@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }
    
    .admin-header-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .header-top-row {
        flex-direction: row !important;
        justify-content: space-between;
        gap: 0.5rem;
        text-align: left;
    }

    .header-title {
        font-size: 1.1rem !important; /* Smaller to fit in one row */
    }

    .header-center {
        flex: 1;
        justify-content: center;
        display: flex;
    }

    .header-footer {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .separator-dot {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .calendar-header h3 {
        font-size: 0.95rem;
    }

    .logo-circle {
        width: 70px;
        height: 70px;
    }

    .calendar-day {
        min-height: 40px;
        font-size: 0.8rem;
    }

    .slot-count {
        font-size: 0.55rem;
        padding: 0 2px;
    }
}
#time-selection-container {
    margin-bottom: 2rem;
}

.my-appts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.my-appt-item {
    display: flex;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem;
    border: 1.5px solid #e2e8f0; /* Stronger border for contrast */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.25rem;
    transition: all 0.2s ease;
}

.my-appt-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.my-appt-name {
    font-weight: 800;
    color: #0f172a; /* Darker for contrast */
    font-size: 1.15rem;
}

.my-appt-status-tag {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
}

.my-appt-detail-item span {
    color: #334155; /* Darker text */
    font-weight: 500;
}

.calendar-pill-btn {
    background: #0f172a; /* Dark background for high contrast */
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-pill-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

/* Tab Badges & Pulse Animation */
.tab-count {
    font-size: 0.6rem;
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 0.4rem;
    font-weight: 700;
}

.tab-count.has-pending {
    background: #ef4444;
    color: white;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        transform: scale(1);
    }
}

.appt-confirm-btn-alt {
    background: #fff;
    border: 1.5px solid #10b981;
    color: #10b981;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.appt-confirm-btn-alt:hover {
    background: #ecfdf5;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.appt-cancel-btn-alt {
    background: #fff;
    border: 1.5px solid #ef4444;
    color: #ef4444;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.appt-cancel-btn-alt:hover {
    background: #fef2f2;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.appt-card.pending-highlight {
    border-left: 4px solid #ef4444;
}

.appt-status.pending {
    background: transparent;
    color: #d97706;
    border: none;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Onboarding Tooltip */
.onboarding-tooltip {
    position: absolute;
    z-index: 2000;
    background: white;
    border: 2px solid var(--accent-pink-dark);
    border-radius: 12px;
    padding: 1rem;
    width: 280px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.onboarding-tooltip.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.onboarding-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}

.onboarding-tooltip.top::before {
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: var(--accent-pink-dark);
}

.onboarding-tooltip.bottom::before {
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: var(--accent-pink-dark);
}

.onboarding-content p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.4;
}

.onboarding-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.onboarding-btn-skip {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.4rem;
}

.onboarding-btn-next {
    background: var(--accent-pink-dark);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

/* Beacon Animation */
@keyframes pulse-pink {
    0% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(236, 72, 153, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0);
    }
}

.has-beacon {
    animation: pulse-pink 2s infinite;
    position: relative;
    z-index: 1999;
    border-radius: inherit;
}

/* ===== Clients Directory ===== */
.clients-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.client-item {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-premium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.client-name {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.client-phone {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.client-desc-preview {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.client-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: auto;
}

.btn-client-action {
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-edit {
    background: #f1f5f9;
    color: #334155;
}

.btn-edit:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-delete {
    background: #fee2e2;
    color: #dc2626;
}

.btn-delete:hover {
    background: #fecaca;
    color: #991b1b;
}
