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

        :root {
            --primary: #0F172A;
            --secondary: #0EA5E9;
            --accent: #3B82F6;
            --success: #10B981;
            --warning: #F59E0B;
            --danger: #EF4444;
            --background: #F8FAFC;
            --border: #E2E8F0;
            --text-primary: #0F172A;
            --text-secondary: #64748B;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--background);
            color: var(--text-primary);
        }

        /* Eliminar outline feo de todos los inputs y selects */
        select,
        input,
        textarea,
        button {
            outline: none !important;
        }

        select:focus,
        input:focus,
        textarea:focus {
            outline: none !important;
        }

        select:focus-visible,
        input:focus-visible,
        textarea:focus-visible {
            outline: none !important;
        }

        /* Eliminar borde punteado feo en selects */
        select::-moz-focus-inner {
            border: 0;
        }

        select:-moz-focusring {
            color: transparent;
            text-shadow: 0 0 0 var(--text-primary);
        }

        /* Mejorar apariencia del dropdown de select */
        select {
            max-height: 300px;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Poppins', sans-serif;
        }

        /* LOGIN PAGE */
        .login-container {
            display: flex;
            height: 100vh;
        }

        .login-left {
            flex: 1;
            background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
            padding: 60px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            color: white;
        }

        .login-logo {
            font-size: 52px;
            font-weight: 800;
            margin-bottom: 20px;
        }

        .login-tagline {
            font-size: 20px;
            line-height: 1.6;
            margin-bottom: 40px;
            opacity: 0.9;
        }

        .login-benefits {
            list-style: none;
        }

        .login-benefits li {
            display: flex;
            align-items: start;
            margin-bottom: 20px;
            font-size: 16px;
            line-height: 1.5;
        }

        .login-benefits li::before {
            content: "✓";
            display: inline-block;
            width: 28px;
            height: 28px;
            background: var(--secondary);
            border-radius: 50%;
            text-align: center;
            line-height: 28px;
            margin-right: 15px;
            flex-shrink: 0;
            font-weight: bold;
        }

        .login-right {
            flex: 1;
            background: white;
            padding: 60px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .login-form-container {
            width: 100%;
            max-width: 400px;
        }

        .login-title {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 30px;
            color: var(--primary);
        }

        .demo-credentials {
            background: #EFF6FF;
            border: 2px solid var(--secondary);
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 30px;
        }

        .demo-credentials h4 {
            color: var(--secondary);
            font-size: 14px;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .demo-credentials p {
            font-size: 13px;
            color: #475569;
            margin: 5px 0;
        }

        .demo-credentials strong {
            color: var(--primary);
            font-weight: 600;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #475569;
        }

        .form-group input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 15px;
            font-family: 'Inter', sans-serif;
            transition: all 0.3s;
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--secondary);
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
        }

        .login-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .login-btn:hover {
            transform: translateY(-2px);
        }

        /* DASHBOARD */
        .dashboard {
            display: none;
            height: 100vh;
        }

        .dashboard.active {
            display: flex;
        }

        /* SIDEBAR */
        .sidebar {
            width: 240px;
            background: white;
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
        }

        .sidebar-header {
            padding: 32px 24px;
            border-bottom: 1px solid var(--border);
        }

        .sidebar-logo {
            font-size: 24px;
            font-weight: 800;
            color: var(--primary);
            margin-bottom: 6px;
        }

        .clinic-name {
            font-size: 13px;
            color: var(--text-secondary);
            font-weight: 400;
        }

        .nav-menu {
            flex: 1;
            padding: 16px 0;
            overflow-y: auto;
        }

        .nav-item {
            padding: 12px 24px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 14px;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 500;
            margin: 2px 8px;
            border-radius: 8px;
        }

        .nav-item:hover {
            background: var(--background);
            color: var(--text-primary);
        }

        .nav-item.active {
            background: var(--primary);
            color: white;
            font-weight: 600;
        }

        .nav-icon {
            font-size: 18px;
            width: 20px;
            text-align: center;
        }

        .sidebar-footer {
            padding: 20px 24px;
            border-top: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--secondary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 14px;
        }

        .user-info {
            flex: 1;
        }

        .user-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .user-role {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .logout-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 11px;
            padding: 4px 0;
            margin-top: 2px;
            text-align: left;
            font-weight: 500;
        }

        .logout-btn:hover {
            color: var(--danger);
        }

        /* MAIN CONTENT */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .topbar {
            background: white;
            border-bottom: 1px solid var(--border);
            padding: 24px 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .topbar h2 {
            font-size: 28px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .content-area {
            flex: 1;
            padding: 40px;
            overflow-y: auto;
            background: var(--background);
        }

        .content-section {
            display: none;
        }

        .content-section.active {
            display: block;
        }

        /* STATS CARDS */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
            margin-bottom: 32px;
        }

        .stat-card {
            background: white;
            border-radius: 16px;
            padding: 28px;
            border: 1px solid var(--border);
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
        }

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

        .stat-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .stat-icon {
            font-size: 32px;
        }

        .stat-value {
            font-size: 40px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
            line-height: 1;
        }

        .stat-label {
            font-size: 14px;
            color: var(--text-secondary);
            font-weight: 500;
            margin-bottom: 12px;
        }

        .stat-footer {
            font-size: 13px;
            color: var(--success);
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* SECTION HEADER */
        .section-header {
            margin-bottom: 24px;
        }

        .section-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
        }

        /* TABLE */
        .table-container {
            background: white;
            border-radius: 16px;
            border: 1px solid var(--border);
            overflow: hidden;
        }

        .table-header {
            padding: 24px 28px;
            border-bottom: 1px solid var(--border);
        }

        .table-header h3 {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        thead {
            background: var(--background);
        }

        th {
            padding: 14px 28px;
            text-align: left;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        td {
            padding: 20px 28px;
            border-top: 1px solid var(--border);
            font-size: 14px;
            color: var(--text-primary);
        }

        tr:hover {
            background: #FAFBFC;
        }

        .patient-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .patient-name {
            font-weight: 600;
            color: var(--text-primary);
        }

        .clickable-name {
            cursor: pointer;
            transition: color 0.2s;
        }

        .clickable-name:hover {
            color: var(--secondary);
            text-decoration: underline;
        }

        .clickable-client-name {
            cursor: pointer;
            transition: color 0.2s;
        }

        .clickable-client-name:hover {
            color: var(--secondary);
            text-decoration: underline;
        }

        .patient-phone {
            font-size: 13px;
            color: var(--text-secondary);
        }

        /* BADGES */
        .badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
        }

        .badge-whatsapp {
            background: #D1FAE5;
            color: #065F46;
        }

        .badge-telegram {
            background: #DBEAFE;
            color: #1E40AF;
        }

        .badge-facebook {
            background: #DBEAFE;
            color: #1E40AF;
        }

        .badge-instagram {
            background: #FCE7F3;
            color: #9F1239;
        }

        .badge-web {
            background: #E0E7FF;
            color: #3730A3;
        }

        .badge-otro {
            background: #F3F4F6;
            color: #374151;
        }

        .badge-ia {
            background: #E9D5FF;
            color: #6B21A8;
        }

        .badge-ia::before {
            content: "🤖";
        }

        .badge-nuevo {
            background: #DBEAFE;
            color: #1E40AF;
        }

        .badge-con-cita {
            background: #D1FAE5;
            color: #065F46;
        }

        .badge-seguimiento {
            background: #FEF3C7;
            color: #92400E;
        }

        /* BUTTONS */
        .btn {
            padding: 10px 20px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.2s;
            font-family: 'Inter', sans-serif;
        }

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

        .btn-primary:hover {
            background: #0284C7;
        }

        .btn-secondary {
            background: var(--background);
            color: var(--text-primary);
            border: 1px solid var(--border);
        }

        .btn-secondary:hover {
            background: #E2E8F0;
        }

        .btn-secondary:disabled,
        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* FORM CONTROLS */
        .form-control {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid var(--border);
            border-radius: 10px;
            font-size: 15px;
            font-family: 'Inter', sans-serif;
            font-weight: 500;
            background: white;
            color: var(--text-primary);
            transition: all 0.2s;
        }

        .form-control:hover {
            border-color: var(--secondary);
            background: #F0F9FF;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--secondary);
            box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
            background: white;
        }

        /* Mejorar apariencia de date y time inputs - PREMIUM */
        input[type="date"],
        input[type="time"] {
            cursor: pointer;
            font-weight: 600;
            letter-spacing: 0.3px;
            padding: 14px 18px;
        }

        input[type="date"]::-webkit-calendar-picker-indicator,
        input[type="time"]::-webkit-calendar-picker-indicator {
            cursor: pointer;
            font-size: 22px;
            margin-left: 12px;
            opacity: 0.7;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            filter: brightness(0) saturate(100%) invert(45%) sepia(88%) saturate(2392%) hue-rotate(183deg) brightness(98%) contrast(95%);
            padding: 4px;
            border-radius: 4px;
        }

        input[type="date"]::-webkit-calendar-picker-indicator:hover,
        input[type="time"]::-webkit-calendar-picker-indicator:hover {
            opacity: 1;
            transform: scale(1.2);
            background: rgba(14, 165, 233, 0.1);
        }

        input[type="date"]::-webkit-calendar-picker-indicator:active,
        input[type="time"]::-webkit-calendar-picker-indicator:active {
            transform: scale(1.1);
        }

        /* Personalizar el calendario que se abre (navegadores webkit) */
        input[type="date"]::-webkit-datetime-edit-fields-wrapper {
            padding: 0;
        }

        input[type="date"]::-webkit-datetime-edit-text {
            color: var(--text-secondary);
            padding: 0 4px;
        }

        input[type="date"]::-webkit-datetime-edit-month-field,
        input[type="date"]::-webkit-datetime-edit-day-field,
        input[type="date"]::-webkit-datetime-edit-year-field,
        input[type="time"]::-webkit-datetime-edit-hour-field,
        input[type="time"]::-webkit-datetime-edit-minute-field {
            padding: 4px 6px;
            border-radius: 4px;
            font-weight: 700;
            transition: background 0.2s;
        }

        input[type="date"]::-webkit-datetime-edit-month-field:hover,
        input[type="date"]::-webkit-datetime-edit-day-field:hover,
        input[type="date"]::-webkit-datetime-edit-year-field:hover,
        input[type="time"]::-webkit-datetime-edit-hour-field:hover,
        input[type="time"]::-webkit-datetime-edit-minute-field:hover {
            background: rgba(14, 165, 233, 0.1);
        }

        input[type="time"]::-webkit-datetime-edit-ampm-field {
            padding: 4px 6px;
            border-radius: 4px;
            font-weight: 700;
            background: var(--secondary);
            color: white;
            margin-left: 6px;
        }

        /* Mejorar apariencia de select con flecha personalizada */
        select.form-control {
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%230EA5E9' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 16px center;
            background-size: 14px;
            padding-right: 48px;
            font-weight: 600;
            outline: none;
            background-color: white;
        }

        select.form-control:hover {
            border-color: var(--secondary);
            background-color: #F0F9FF;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%230EA5E9' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 16px center;
            background-size: 14px;
            outline: none;
        }

        select.form-control:focus {
            outline: none;
            border-color: var(--secondary);
            box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
            background-color: white;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%230EA5E9' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 16px center;
            background-size: 14px;
        }

        select.form-control:focus-visible {
            outline: none;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--secondary);
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
        }

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

        /* MODALS */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            align-items: center;
            justify-content: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: 16px;
            width: 90%;
            max-width: 700px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-header {
            padding: 24px 28px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h3 {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 0;
        }

        .chat-date {
            font-size: 13px;
            color: var(--text-secondary);
            font-weight: 400;
            margin-top: 6px;
            font-family: 'Inter', sans-serif;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: var(--text-secondary);
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .modal-close:hover {
            color: var(--text-primary);
        }

        /* ESTILOS MODERNOS PARA BOTONES DE CERRAR */
        .close-modal {
            background: var(--background);
            border: 2px solid var(--border);
            border-radius: 8px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--text-secondary);
            font-size: 20px;
            font-weight: 600;
            padding: 0;
            line-height: 1;
        }

        .close-modal:hover {
            background: #FEE2E2;
            border-color: #EF4444;
            color: #EF4444;
            transform: scale(1.05);
        }

        .close-modal:active {
            transform: scale(0.95);
        }

        /* BOTONES DE ELIMINAR PEQUEÑOS */
        .btn-delete, .btn-sm.btn-delete {
            background: #FEE2E2;
            color: #EF4444;
            border: 2px solid transparent;
            border-radius: 8px;
            padding: 6px 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 18px;
            line-height: 1;
            min-width: 36px;
            height: 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn-delete:hover, .btn-sm.btn-delete:hover {
            background: #EF4444;
            color: white;
            border-color: #DC2626;
            transform: scale(1.05);
        }

        .btn-delete:active, .btn-sm.btn-delete:active {
            transform: scale(0.95);
        }

        /* BOTÓN X DE ELIMINAR CITA */
        .btn-delete-appointment-new {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 36px;
            height: 36px;
            border-radius: 8px;
            border: 2px solid #FEE2E2;
            background: white;
            color: #EF4444;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            line-height: 1;
        }

        .btn-delete-appointment-new:hover {
            background: #EF4444;
            color: white;
            border-color: #DC2626;
            transform: scale(1.1);
        }

        .btn-delete-appointment-new:active {
            transform: scale(0.95);
        }

        .modal-body {
            padding: 28px;
        }

        .modal-footer {
            padding: 20px 28px;
            border-top: 1px solid var(--border);
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }

        /* CHAT MODAL */
        .chat-messages {
            max-height: 400px;
            overflow-y: auto;
            padding: 20px;
            background: var(--background);
            border-radius: 12px;
            margin-bottom: 20px;
        }

        .chat-message {
            margin-bottom: 16px;
            display: flex;
            flex-direction: column;
        }

        .chat-message.patient {
            align-items: flex-start;
        }

        .chat-message.clinic {
            align-items: flex-end;
        }

        .message-bubble {
            max-width: 70%;
            padding: 12px 16px;
            border-radius: 12px;
            font-size: 14px;
            line-height: 1.5;
        }

        .chat-message.patient .message-bubble {
            background: white;
            border: 1px solid var(--border);
        }

        .chat-message.clinic .message-bubble {
            background: var(--secondary);
            color: white;
        }

        .message-time {
            font-size: 11px;
            color: var(--text-secondary);
            margin-top: 4px;
        }

        /* FILTERS */
        .filters {
            display: flex;
            gap: 12px;
            margin-bottom: 24px;
        }

        .filter-btn {
            padding: 10px 20px;
            background: white;
            border: 1px solid var(--border);
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            transition: all 0.2s;
        }

        .filter-btn:hover {
            background: var(--background);
        }

        .filter-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        /* CLIENTS TABLE CARD */
        .clients-table-card {
            background: white;
            border-radius: 16px;
            border: 1px solid var(--border);
            overflow: hidden;
            padding: 24px;
        }

        .clients-table-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }

        .clients-table-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .clients-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
        }

        .clients-table thead th {
            background: transparent;
            padding: 12px 16px;
            text-align: left;
            font-size: 11px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid var(--border);
        }

        .clients-table tbody td {
            padding: 20px 16px;
            border-bottom: 1px solid var(--border);
            font-size: 14px;
            color: var(--text-primary);
            vertical-align: middle;
        }

        .clients-table tbody tr:last-child td {
            border-bottom: none;
        }

        .clients-table tbody tr:hover {
            background: var(--background);
        }

        .btn-notes {
            padding: 8px 16px;
            font-size: 13px;
            white-space: nowrap;
        }

        .btn-action {
            padding: 8px 16px;
            font-size: 13px;
            margin-right: 8px;
        }

        .btn-action:last-child {
            margin-right: 0;
        }

        /* HIDDEN CLASS FOR FILTERING */
        tr.hidden-row {
            display: none;
        }

        .hidden {
            display: none !important;
        }

        /* RESPONSIVE */
            display: none !important;
        }

        /* CONFIG TABS */
        .config-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
            border-bottom: 2px solid var(--border);
            padding-bottom: 0;
        }

        .config-tab {
            padding: 12px 24px;
            background: none;
            border: none;
            border-bottom: 3px solid transparent;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-secondary);
            transition: all 0.2s;
            font-family: 'Inter', sans-serif;
            margin-bottom: -2px;
        }

        .config-tab:hover {
            color: var(--text-primary);
            background: var(--background);
        }

        .config-tab.active {
            color: var(--secondary);
            border-bottom-color: var(--secondary);
            background: transparent;
        }

        .config-tab-content {
            display: none;
        }

        .config-tab-content.active {
            display: block;
        }

        /* DELETE BUTTON */
        .btn-delete {
            padding: 10px 20px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.2s;
            font-family: 'Inter', sans-serif;
            background: var(--danger);
            color: white;
        }

        .btn-delete:hover {
            background: #DC2626;
        }

        /* PRICING MODERN */
        .pricing-header-modern {
            background: var(--primary);
            color: white;
            padding: 40px;
            border-radius: 16px;
            text-align: center;
        }

        .pricing-header-modern h2 {
            font-size: 32px;
            margin-bottom: 12px;
            font-weight: 700;
        }

        .pricing-header-modern p {
            font-size: 16px;
            opacity: 0.9;
        }

        .pricing-table-modern {
            margin: 0;
        }

        .pricing-table-modern tbody tr {
            border-top: 1px solid var(--border);
        }

        .price-highlight {
            font-size: 20px;
            font-weight: 700;
            color: var(--secondary);
        }

        .plan-features-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .plan-features-list div {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        /* SUBSCRIPTION SUMMARY MODERN */
        .subscription-summary-modern {
            background: white;
            border: 2px solid var(--secondary);
            border-radius: 16px;
            padding: 32px;
            margin-top: 32px;
        }

        .subscription-summary-modern h3 {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 24px;
        }

        .summary-grid {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
            border-bottom: 1px solid var(--border);
        }

        .summary-row:last-child {
            border-bottom: none;
        }

        .summary-row.total {
            border-top: 2px solid var(--secondary);
            padding-top: 20px;
            margin-top: 12px;
        }

        .summary-label {
            font-size: 14px;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .summary-value {
            font-size: 14px;
            color: var(--text-primary);
            font-weight: 600;
        }

        .summary-total {
            font-size: 24px;
            font-weight: 700;
            color: var(--secondary);
        }

        /* NOTES MODERN DESIGN */
        .add-note-section {
            margin-bottom: 40px;
        }

        .notes-section-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 16px;
        }

        .notes-textarea {
            width: 100%;
            padding: 16px;
            border: 2px solid var(--secondary);
            border-radius: 12px;
            font-size: 14px;
            font-family: 'Inter', sans-serif;
            resize: vertical;
            transition: all 0.3s;
            background: white;
            color: var(--text-primary);
        }

        .notes-textarea:focus {
            outline: none;
            border-color: var(--secondary);
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
        }

        .notes-textarea::placeholder {
            color: #94A3B8;
        }

        .notes-add-btn {
            margin-top: 16px;
            padding: 12px 32px;
            font-size: 15px;
            font-weight: 600;
            border-radius: 10px;
        }

        .notes-list {
            margin-top: 32px;
        }

        .note-card {
            background: white;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 16px;
            transition: all 0.3s;
        }

        .note-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        }

        .note-header {
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .note-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
        }

        .note-actions {
            display: flex;
            gap: 8px;
        }

        .note-action-btn {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 16px;
            padding: 4px 8px;
            border-radius: 6px;
            transition: all 0.2s;
            opacity: 0.6;
        }

        .note-action-btn:hover {
            opacity: 1;
            background: var(--background);
        }

        .note-delete-btn:hover {
            background: #FEE2E2;
        }

        .note-author-name {
            font-weight: 600;
            color: var(--text-primary);
        }

        .note-separator {
            color: var(--text-secondary);
        }

        .note-datetime {
            color: var(--text-secondary);
        }

        .note-body {
            margin-top: 8px;
        }

        .note-input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 14px;
            font-family: 'Inter', sans-serif;
            background: var(--background);
            color: var(--text-primary);
            line-height: 1.6;
        }

        .note-input:focus {
            outline: none;
            border-color: var(--secondary);
            background: white;
        }

        /* CLIENT PROFILE STYLES */
        .profile-info-card {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .profile-info-card label {
            font-size: 11px;
            color: var(--text-secondary);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .profile-info-card value {
            font-size: 14px;
            color: var(--text-primary);
            font-weight: 600;
        }

        .profile-editable-field {
            width: 100%;
            padding: 10px 12px;
            border: 2px solid var(--border);
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            font-family: 'Inter', sans-serif;
            transition: all 0.2s;
            background: white;
        }

        .profile-editable-field:hover {
            border-color: var(--secondary);
            background: #F0F9FF;
        }

        .profile-editable-field:focus {
            outline: none;
            border-color: var(--secondary);
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
            background: white;
        }

        .profile-editable-field:invalid {
            border-color: var(--danger);
        }

        .profile-section {
            background: var(--background);
            padding: 24px;
            border-radius: 12px;
            margin-bottom: 24px;
        }

        .profile-section-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 16px;
        }

        .appointments-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .appointment-item-editable {
            background: white;
            padding: 20px;
            border-radius: 12px;
            border: 1px solid var(--border);
            position: relative;
            transition: all 0.2s;
        }

        .appointment-item-editable:hover {
            border-color: var(--secondary);
            box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
        }

        .appointment-row {
            display: flex;
            gap: 16px;
            align-items: flex-end;
        }

        .appointment-field {
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex: 1;
        }

        .appointment-field label {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .appointment-input {
            padding: 10px 12px;
            border: 2px solid var(--border);
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
            font-family: 'Inter', sans-serif;
            transition: all 0.2s;
            background: white;
        }

        /* Ajustar tamaño de fuente específico para date y time */
        .appointment-input[type="date"],
        .appointment-input[type="time"] {
            font-size: 11px;
            padding: 10px 8px;
            letter-spacing: -0.5px;
            font-weight: 700;
        }

        .appointment-input:hover {
            border-color: var(--secondary);
            background: #F0F9FF;
        }

        .appointment-input:focus {
            outline: none;
            border-color: var(--secondary);
            box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
            background: white;
        }

        /* Estilos especiales para date y time en citas */
        .appointment-input[type="date"],
        .appointment-input[type="time"] {
            cursor: pointer;
        }

        .appointment-input[type="date"]::-webkit-calendar-picker-indicator,
        .appointment-input[type="time"]::-webkit-calendar-picker-indicator {
            cursor: pointer;
            font-size: 18px;
            opacity: 0.6;
            transition: all 0.2s;
            filter: brightness(0) saturate(100%) invert(45%) sepia(88%) saturate(2392%) hue-rotate(183deg) brightness(98%) contrast(95%);
        }

        .appointment-input[type="date"]::-webkit-calendar-picker-indicator:hover,
        .appointment-input[type="time"]::-webkit-calendar-picker-indicator:hover {
            opacity: 1;
            transform: scale(1.15);
        }

        /* Mejorar selects en citas */
        select.appointment-input {
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230EA5E9' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 14px center;
            background-size: 12px;
            background-color: white;
            padding-right: 40px;
            outline: none;
        }

        /* Limitar altura del dropdown a 5 opciones visibles */
        select.appointment-input,
        select#newAppointmentTime {
            height: auto;
        }

        /* Estilos específicos para Chrome/Safari */
        select.appointment-input option,
        select#newAppointmentTime option {
            padding: 10px;
            background-color: white;
            color: var(--text-primary);
        }

        select.appointment-input option:checked,
        select#newAppointmentTime option:checked {
            background-color: #FFA500;
            color: white;
        }

        select.appointment-input:hover {
            border-color: var(--secondary);
            background-color: #F0F9FF;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230EA5E9' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 14px center;
            background-size: 12px;
            outline: none;
        }

        select.appointment-input:focus {
            outline: none;
            border-color: var(--secondary);
            box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
            background-color: white;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230EA5E9' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 14px center;
            background-size: 12px;
        }

        select.appointment-input:focus-visible {
            outline: none;
        }

        /* CUSTOM SELECT DROPDOWN */
        .custom-select-wrapper {
            position: relative;
            width: 100%;
        }

        .custom-select-trigger {
            padding: 10px 12px;
            border: 2px solid var(--border);
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
            font-family: 'Inter', sans-serif;
            background: white;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.2s;
        }

        .custom-select-trigger:hover {
            border-color: var(--secondary);
            background-color: #F0F9FF;
        }

        .custom-select-trigger.active {
            border-color: var(--secondary);
            box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
        }

        .custom-select-arrow {
            width: 12px;
            height: 12px;
            transition: transform 0.2s;
        }

        .custom-select-trigger.active .custom-select-arrow {
            transform: rotate(180deg);
        }

        .custom-select-dropdown {
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            right: 0;
            background: #6B6B6D;
            border: none;
            border-radius: 14px;
            max-height: 280px;
            overflow-y: auto;
            z-index: 1000;
            display: none;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            padding: 6px;
        }

        .custom-select-dropdown.active {
            display: block;
        }

        .custom-select-option {
            padding: 8px 14px;
            color: #E8E8E8;
            font-size: 15px;
            font-weight: 400;
            cursor: pointer;
            transition: background 0.2s;
            border-radius: 8px;
            margin-bottom: 1px;
        }

        .custom-select-option:hover {
            background: rgba(255, 255, 255, 0.08);
        }

        .custom-select-option.selected {
            background: #D9A441;
            color: white;
            font-weight: 400;
        }

        /* Personalizar scrollbar */
        .custom-select-dropdown::-webkit-scrollbar {
            width: 6px;
        }

        .custom-select-dropdown::-webkit-scrollbar-track {
            background: transparent;
        }

        .custom-select-dropdown::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 10px;
        }

        .custom-select-dropdown::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.25);
        }

        /* CUSTOM DATE PICKER */
        .custom-date-display {
            padding: 10px 12px;
            border: 2px solid var(--border);
            border-radius: 10px;
            font-size: 13px;
            font-weight: 700;
            color: var(--text-primary);
            font-family: 'Inter', sans-serif;
            background: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
        }

        .custom-date-display:hover {
            border-color: var(--secondary);
            background-color: #F0F9FF;
        }

        .custom-date-display.active {
            border-color: var(--secondary);
            box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
        }

        .custom-date-display svg {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
        }

        .appointment-status {
            font-weight: 600;
        }

        .appointment-status option[value="completada"] {
            color: var(--success);
        }

        .appointment-status option[value="confirmada"] {
            color: var(--secondary);
        }

        .appointment-status option[value="pendiente"] {
            color: #F59E0B;
        }

        .appointment-status option[value="cancelada"] {
            color: var(--danger);
        }


        /* Mantener estilos antiguos para compatibilidad */
        .appointment-item {
            background: white;
            padding: 16px;
            border-radius: 8px;
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 16px;
            position: relative;
        }

        .btn-delete-appointment {
            position: absolute;
            right: 16px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: none;
            background: #FEE2E2;
            color: var(--danger);
            font-size: 24px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            line-height: 1;
        }

        .btn-delete-appointment:hover {
            background: var(--danger);
            color: white;
        }

        .btn-delete {
            background: var(--danger);
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-delete:hover {
            background: #DC2626;
        }

        .appointment-date {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
            min-width: 160px;
        }

        .appointment-service {
            font-size: 14px;
            color: var(--text-primary);
            flex: 1;
        }

        .appointment-doctor {
            font-size: 13px;
            color: var(--text-secondary);
        }

        .files-upload-area {
            background: white;
            padding: 24px;
            border-radius: 8px;
            border: 2px dashed var(--border);
            text-align: center;
        }

        .files-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .file-item {
            background: white;
            padding: 12px 16px;
            border-radius: 8px;
            border: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14px;
            margin-bottom: 12px;
        }

        .file-item:last-child {
            margin-bottom: 0;
        }

        .file-name-editable {
            cursor: pointer;
            transition: color 0.2s;
        }

        .file-name-editable:hover {
            color: var(--secondary);
            text-decoration: underline;
        }

        /* CALENDARIO STYLES */
        .calendar-header {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            background: var(--background);
            border-bottom: 2px solid var(--border);
        }

        .calendar-header-day {
            padding: 12px;
            text-align: center;
            font-weight: 600;
            font-size: 12px;
            color: var(--text-secondary);
            text-transform: uppercase;
        }

        .calendar-body {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            min-height: 600px;
        }

        .calendar-day {
            min-height: 100px;
            border-right: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            padding: 8px;
            background: white;
            position: relative;
            cursor: pointer;
            transition: all 0.2s;
        }

        .calendar-day:hover {
            background: #F0F9FF;
            box-shadow: inset 0 0 0 2px var(--secondary);
        }

        .calendar-day:active {
            transform: scale(0.98);
        }

        .calendar-day.other-month {
            background: #F8FAFC;
            color: #CBD5E1;
        }

        .calendar-day.today {
            background: #EFF6FF;
        }

        .calendar-day-number {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 4px;
            color: var(--text-primary);
        }

        .calendar-day.other-month .calendar-day-number {
            color: #CBD5E1;
        }

        .calendar-day.today .calendar-day-number {
            background: var(--secondary);
            color: white;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .calendar-appointment {
            font-size: 11px;
            padding: 3px 6px;
            margin-bottom: 2px;
            border-radius: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            cursor: pointer;
            transition: opacity 0.2s;
        }

        .calendar-appointment:hover {
            opacity: 0.8;
        }

        .calendar-appointment.green {
            background: #10B981;
            color: white;
        }

        .calendar-appointment.red {
            background: #EF4444;
            color: white;
        }

        .calendar-appointment.yellow {
            background: #F59E0B;
            color: white;
        }

        .appointment-list-item {
            padding: 16px;
            border: 1px solid var(--border);
            border-radius: 8px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.2s;
        }

        .appointment-list-item:hover {
            border-color: var(--secondary);
            box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
        }

        .color-config-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: var(--background);
            border-radius: 8px;
            border: 2px solid transparent;
            transition: all 0.2s;
        }

        .color-config-item:hover {
            border-color: var(--secondary);
        }

        .color-picker {
            width: 50px;
            height: 50px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
        }

        .day-schedule-item {
            padding: 12px;
            background: var(--background);
            border-radius: 8px;
        }

        /* SELECT DE AÑOS CON SCROLL */
        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: var(--text-primary);
            cursor: pointer;
        }

        .checkbox-label input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        /* COLUMN CONFIG MODAL */
        .column-checkbox-label {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px;
            border: 2px solid var(--border);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            background: white;
        }

        .column-checkbox-label:hover {
            border-color: var(--secondary);
            background: #F0F9FF;
        }

        .column-checkbox-label.disabled {
            opacity: 0.6;
            cursor: not-allowed;
            background: var(--background);
        }

        .column-checkbox-label input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
        }

        .column-checkbox-label.disabled input[type="checkbox"] {
            cursor: not-allowed;
        }

        .column-checkbox-label span {
            font-size: 14px;
            color: var(--text-primary);
            font-weight: 500;
        }

        /* FLATPICKR CUSTOM STYLES - Diseño Moderno */
        .custom-flatpickr {
            border: none !important;
            border-radius: 16px !important;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
            font-family: 'Inter', sans-serif !important;
        }

        .flatpickr-calendar {
            border-radius: 16px !important;
            padding: 20px !important;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
            border: 2px solid #E5E7EB !important;
        }

        .flatpickr-months {
            padding: 0 0 16px 0 !important;
        }

        .flatpickr-month {
            height: auto !important;
        }

        .flatpickr-current-month {
            font-size: 18px !important;
            font-weight: 600 !important;
            padding: 0 !important;
            height: auto !important;
        }

        .flatpickr-current-month select {
            font-weight: 600 !important;
            font-size: 16px !important;
            padding: 8px 12px !important;
            border-radius: 8px !important;
            border: none !important;
            background: var(--background) !important;
            cursor: pointer !important;
        }

        .flatpickr-current-month select:hover {
            background: var(--secondary) !important;
            color: white !important;
        }

        .flatpickr-prev-month,
        .flatpickr-next-month {
            padding: 0 !important;
            width: 36px !important;
            height: 36px !important;
            border-radius: 50% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            transition: all 0.2s !important;
        }

        .flatpickr-prev-month:hover,
        .flatpickr-next-month:hover {
            background: var(--secondary) !important;
        }

        .flatpickr-prev-month:hover svg,
        .flatpickr-next-month:hover svg {
            fill: white !important;
            stroke: white !important;
        }

        .flatpickr-weekdays {
            margin-top: 12px !important;
        }

        .flatpickr-weekday {
            font-size: 12px !important;
            font-weight: 700 !important;
            color: var(--text-secondary) !important;
            text-transform: uppercase !important;
        }

        .flatpickr-days {
            padding: 8px 0 !important;
        }

        .flatpickr-day {
            border-radius: 50% !important;
            font-size: 14px !important;
            font-weight: 500 !important;
            height: 40px !important;
            line-height: 40px !important;
            margin: 2px !important;
            transition: all 0.2s !important;
        }

        .flatpickr-day:hover {
            background: var(--background) !important;
            border-color: var(--background) !important;
        }

        .flatpickr-day.today {
            border: 2px solid var(--secondary) !important;
            font-weight: 700 !important;
            background: transparent !important;
        }

        .flatpickr-day.today:hover {
            background: var(--background) !important;
        }

        .flatpickr-day.selected {
            background: var(--secondary) !important;
            border-color: var(--secondary) !important;
            color: white !important;
            font-weight: 700 !important;
        }

        .flatpickr-day.selected:hover {
            background: #0284C7 !important;
            border-color: #0284C7 !important;
        }

        .flatpickr-day.prevMonthDay,
        .flatpickr-day.nextMonthDay {
            color: #D1D5DB !important;
        }

        /* Estilo para domingos en rojo */
        .flatpickr-day.flatpickr-disabled,
        .flatpickr-day:nth-child(7n) {
            color: #EF4444 !important;
        }

        /* TIME PICKER STYLES */
        .custom-flatpickr-time .flatpickr-time {
            border: none !important;
            padding: 20px !important;
        }

        .flatpickr-time-separator,
        .flatpickr-am-pm {
            font-size: 24px !important;
            font-weight: 700 !important;
            color: var(--text-primary) !important;
        }

        .flatpickr-time input {
            font-size: 48px !important;
            font-weight: 700 !important;
            font-family: 'Poppins', sans-serif !important;
        }

        .numInputWrapper:hover {
            background: rgba(14, 165, 233, 0.1) !important;
        }

        .flatpickr-input[readonly] {
            cursor: pointer !important;
            background: white !important;
        }

        .flatpickr-input:focus {
            border-color: var(--secondary) !important;
            box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1) !important;
        }

        /* CUSTOM DATE PICKER */
        .custom-date-input {
            position: relative;
        }

        .date-picker-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            background: white;
            border: 2px solid var(--border);
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            padding: 20px;
            z-index: 1000;
            min-width: 320px;
            display: none;
        }

        .date-picker-dropdown.active {
            display: block;
        }

        .date-picker-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            gap: 12px;
        }

        .date-picker-nav {
            background: var(--background);
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: var(--text-primary);
            transition: all 0.2s;
        }

        .date-picker-nav:hover {
            background: var(--secondary);
            color: white;
        }

        .date-picker-current {
            display: flex;
            gap: 8px;
            flex: 1;
            justify-content: center;
        }

        .date-picker-month,
        .date-picker-year {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            background: var(--background);
            border: none;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .date-picker-month:hover,
        .date-picker-year:hover {
            background: var(--secondary);
            color: white;
        }

        .date-picker-calendar {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
            margin-bottom: 12px;
        }

        .date-picker-weekday {
            text-align: center;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            padding: 8px 0;
        }

        .date-picker-day {
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--text-primary);
        }

        .date-picker-day:hover {
            background: var(--background);
        }

        .date-picker-day.today {
            border: 2px solid var(--secondary);
            font-weight: 700;
        }

        .date-picker-day.selected {
            background: var(--secondary);
            color: white;
            font-weight: 700;
        }

        .date-picker-day.other-month {
            color: #D1D5DB;
        }

        .date-picker-day.weekend {
            color: #EF4444;
        }

        .date-picker-actions {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            padding-top: 12px;
            border-top: 1px solid var(--border);
        }

        .date-picker-btn {
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
        }

        .date-picker-btn.cancel {
            background: var(--background);
            color: var(--text-primary);
        }

        .date-picker-btn.cancel:hover {
            background: #E5E7EB;
        }

        .date-picker-btn.confirm {
            background: var(--secondary);
            color: white;
        }

        .date-picker-btn.confirm:hover {
            background: #0284C7;
        }

        /* CUSTOM TIME PICKER */
        .time-picker-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            background: white;
            border: 2px solid var(--border);
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            padding: 20px;
            z-index: 1000;
            min-width: 280px;
            display: none;
        }

        .time-picker-dropdown.active {
            display: block;
        }

        .time-picker-display {
            text-align: center;
            font-size: 48px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 20px;
            font-family: 'Poppins', sans-serif;
        }

        .time-picker-controls {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 16px;
        }

        .time-picker-column {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .time-picker-label {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            text-align: center;
            text-transform: uppercase;
        }

        .time-picker-scroll {
            max-height: 200px;
            overflow-y: auto;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 4px;
        }

        .time-picker-option {
            padding: 10px;
            text-align: center;
            font-size: 16px;
            font-weight: 600;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .time-picker-option:hover {
            background: var(--background);
        }

        .time-picker-option.selected {
            background: var(--secondary);
            color: white;
        }

        .btn-sm {
            padding: 6px 12px;
            font-size: 12px;
        }

        /* CONFIRM MODAL */
        .confirm-modal-content {
            max-width: 400px;
            text-align: center;
            padding: 48px 40px;
        }

        .confirm-icon {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
            color: white;
            font-size: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 24px;
            box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
        }

        .confirm-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 12px;
        }

        .confirm-message {
            font-size: 15px;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 32px;
        }

        .confirm-btn {
            width: 100%;
            padding: 14px;
            font-size: 16px;
            font-weight: 600;
        }

        /* RESPONSIVE */
        @media (max-width: 1200px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .login-container {
                flex-direction: column;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .sidebar {
                width: 200px;
            }
        }
