/* ==========================================
   🎨 TANDA 2: ESTILOS NUEVOS
   Colores personalizados, WhatsApp/Telegram,
   PNG, Kanban
   ========================================== */

/* ==========================================
   🎨 SELECTOR DE COLOR PERSONALIZADO
   ========================================== */
.color-picker-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.color-picker-row input[type="color"] {
    width: 50px;
    height: 40px;
    padding: 2px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    background: var(--bg-body);
}

.color-picker-row input[type="text"] {
    flex: 1;
    min-width: 100px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

.btn-color-reset {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.85rem;
}

.btn-color-reset:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Colores rápidos predefinidos */
.color-presets {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.color-preset {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.color-preset:hover {
    transform: scale(1.15);
    border-color: var(--text-primary);
}

.color-preset.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--bg-surface), 0 0 0 4px var(--text-primary);
}

/* Indicador de color en eventos de la lista */
.item-color-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    flex-shrink: 0;
}

/* Color personalizado en eventos del calendario */
.month-event[style*="background"] {
    color: white !important;
    font-weight: 500;
}

.week-event[style*="background"] {
    color: white !important;
    font-weight: 500;
}

.event-card[style*="background"] {
    color: white !important;
}

.event-card[style*="background"] strong,
.event-card[style*="background"] div {
    color: inherit !important;
}

/* ==========================================
   🔗 BOTONES COMPARTIR (WHATSAPP/TELEGRAM)
   ========================================== */
.share-buttons-row {
    display: flex;
    gap: 10px;
    padding: 15px 25px;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.btn-share-wa,
.btn-share-tg,
.btn-share-email {
    flex: 1;
    min-width: 120px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    color: white;
}

.btn-share-wa {
    background: #25D366;
}

.btn-share-wa:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-share-tg {
    background: #0088cc;
}

.btn-share-tg:hover {
    background: #006699;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.btn-share-email {
    background: #6366f1;
}

.btn-share-email:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-share-wa i,
.btn-share-tg i,
.btn-share-email i {
    font-size: 1.1rem;
}

/* Ocultar formulario email por defecto */
#share-form {
    display: none;
}

#share-form.visible {
    display: block;
}

/* ==========================================
   📊 VISTA KANBAN
   ========================================== */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    min-height: 500px;
    padding: 10px;
}

.kanban-column {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 400px;
}

.kanban-column-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.kanban-column-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-count {
    background: var(--bg-surface);
    color: var(--text-secondary);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.kanban-column-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
}

.kanban-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.85rem;
}

/* Tarjetas Kanban */
.kanban-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.kanban-card-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.kanban-card-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.kanban-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
    flex: 1;
}

.kanban-card-notes {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.kanban-card-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.kanban-card-actions {
    display: flex;
    gap: 4px;
}

.kanban-move-btn {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
    line-height: 1;
}

.kanban-move-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Badges de prioridad en Kanban */
.kanban-card[data-priority="high"] {
    border-left: 4px solid #dc2626;
}

.kanban-card[data-priority="medium"] {
    border-left: 4px solid #f59e0b;
}

.kanban-card[data-priority="low"] {
    border-left: 4px solid #10b981;
}

/* ==========================================
   🎯 SELECTOR DE ESTADO (PENDIENTE/EN PROGRESO/HECHO)
   ========================================== */
#item-status {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
}

#item-status:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Badge de estado en tarjetas */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 6px;
}

.status-badge.status-pendiente {
    background: #e5e7eb;
    color: #374151;
}

.status-badge.status-en_progreso {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-hecho {
    background: #d1fae5;
    color: #065f46;
}

/* ==========================================
   🔔 TOAST DE CONFIRMACIÓN
   ========================================== */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 4px solid #10b981;
    border-radius: 10px;
    padding: 12px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 4000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast-notification.error {
    border-left-color: #dc2626;
}

.toast-notification.warning {
    border-left-color: #f59e0b;
}

.toast-notification.info {
    border-left-color: #3b82f6;
}

.toast-icon {
    width: 36px;
    height: 36px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.toast-notification.error .toast-icon {
    background: #fee2e2;
    color: #991b1b;
}

.toast-notification.warning .toast-icon {
    background: #fef3c7;
    color: #92400e;
}

.toast-notification.info .toast-icon {
    background: #dbeafe;
    color: #1e40af;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.toast-content strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.toast-content span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================
   📊 BOTÓN ESTADÍSTICAS (header)
   ========================================== */
.btn-stats {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.btn-stats:hover {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
    transform: translateY(-1px);
}

.btn-stats i {
    color: #10b981;
}

/* ==========================================
   🗑️ BOTÓN PAPELERA (sidebar)
   ========================================== */
.btn-trash-toggle {
    background: var(--bg-body);
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    width: 100%;
    text-align: left;
}

.btn-trash-toggle:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #dc2626;
    border-style: solid;
}

.btn-trash-toggle i {
    color: #dc2626;
}

.trash-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: auto;
    background: var(--bg-surface);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

/* ==========================================
   📊 MODAL ESTADÍSTICAS
   ========================================== */
.stats-body {
    padding: 20px 25px;
    overflow-y: auto;
    max-height: calc(92vh - 70px);
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.stat-card-mini {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s;
}

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

.stat-card-mini-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-card-mini-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.stat-card-mini-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-card-mini-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.chart-container {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
}

.chart-container:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.chart-container h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-container h4 i {
    color: var(--primary-color);
}

.chart-container canvas {
    max-height: 300px;
}

/* ==========================================
   🎯 PRIORIDADES (complemento)
   ========================================== */
.priority-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
}

.priority-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.priority-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.priority-badge.priority-high {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.priority-badge.priority-medium {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.priority-badge.priority-low {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

body.dark-mode .priority-badge.priority-high {
    background: #7f1d1d;
    color: #fca5a5;
    border-color: #991b1b;
}

body.dark-mode .priority-badge.priority-medium {
    background: #78350f;
    color: #fcd34d;
    border-color: #92400e;
}

body.dark-mode .priority-badge.priority-low {
    background: #064e3b;
    color: #6ee7b7;
    border-color: #065f46;
}

.priority-inline {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 6px;
}

.priority-inline.priority-high {
    background: #fee2e2;
    color: #991b1b;
}

.priority-inline.priority-medium {
    background: #fef3c7;
    color: #92400e;
}

.priority-inline.priority-low {
    background: #d1fae5;
    color: #065f46;
}

/* Bordes de prioridad en la lista */
.item-list li.priority-high {
    border-left-color: #dc2626 !important;
    background: rgba(220, 38, 38, 0.05);
}

.item-list li.priority-medium {
    border-left-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.05);
}

.item-list li.priority-low {
    border-left-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.05);
}

body.dark-mode .item-list li.priority-high {
    background: rgba(239, 68, 68, 0.1);
}

body.dark-mode .item-list li.priority-medium {
    background: rgba(251, 191, 36, 0.1);
}

body.dark-mode .item-list li.priority-low {
    background: rgba(52, 211, 153, 0.1);
}

/* ==========================================
   🗑️ MODAL PAPELERA
   ========================================== */
.trash-body {
    padding: 20px 25px;
    overflow-y: auto;
    max-height: calc(90vh - 70px);
}

.trash-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    padding: 10px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
}

body.dark-mode .trash-hint {
    background: #78350f;
    color: #fcd34d;
}

.trash-actions-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
    flex-wrap: wrap;
}

.trash-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.trash-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.trash-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    border-left: 4px solid var(--border-color);
    gap: 10px;
    flex-wrap: wrap;
}

.trash-item.type-event { border-left-color: var(--primary-color); }
.trash-item.type-task { border-left-color: #ec4899; }
.trash-item.type-visit { border-left-color: #10b981; }
.trash-item.type-habit { border-left-color: #f59e0b; }
.trash-item.type-payment { border-left-color: #10b981; }
.trash-item.type-health { border-left-color: #ef4444; }
.trash-item.type-birthday { border-left-color: #ec4899; }
.trash-item.type-deadline { border-left-color: #8b5cf6; }
.trash-item.type-travel { border-left-color: #06b6d4; }

.trash-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 200px;
}

.trash-item-info strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.trash-item-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.trash-item-info small {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-style: italic;
}

.trash-item-actions {
    display: flex;
    gap: 6px;
}

.btn-restore,
.btn-delete-permanent {
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}

.btn-restore {
    background: #10b981;
}

.btn-restore:hover {
    background: #059669;
}

.btn-delete-permanent {
    background: #dc2626;
}

.btn-delete-permanent:hover {
    background: #b91c1c;
}

.trash-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-style: italic;
}

.trash-empty i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.4;
    display: block;
}

/* ==========================================
   📤 BOTÓN EXPORTAR PNG
   ========================================== */
#btn-export-png {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
}

#btn-export-png:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ==========================================
   📊 VISTA KANBAN - RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }

    .kanban-column {
        min-height: 300px;
    }

    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .share-buttons-row {
        flex-direction: column;
    }

    .btn-share-wa,
    .btn-share-tg,
    .btn-share-email {
        width: 100%;
    }

    .kanban-board {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

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

    .chart-container:nth-child(3) {
        max-width: 100%;
    }

    .toast-notification {
        left: 10px;
        right: 10px;
        transform: translateX(0) translateY(150%);
        min-width: auto;
        max-width: none;
    }

    .toast-notification.show {
        transform: translateX(0) translateY(0);
    }

    .trash-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .trash-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .btn-stats span {
        display: none;
    }

    .color-picker-row {
        flex-direction: column;
        align-items: stretch;
    }

    .color-picker-row input[type="color"] {
        width: 100%;
    }
}

/* ==========================================
   🌙 MODO OSCURO - AJUSTES
   ========================================== */
body.dark-mode .kanban-column {
    background: var(--bg-body);
    border-color: var(--border-color);
}

body.dark-mode .kanban-card {
    background: var(--bg-surface);
    border-color: var(--border-color);
}

body.dark-mode .kanban-count {
    background: var(--bg-body);
    border-color: var(--border-color);
}

body.dark-mode .btn-share-wa {
    background: #25D366;
}

body.dark-mode .btn-share-tg {
    background: #0088cc;
}

body.dark-mode .toast-notification {
    background: var(--bg-surface);
    border-color: var(--border-color);
}

body.dark-mode .status-badge.status-pendiente {
    background: #374151;
    color: #d1d5db;
}

body.dark-mode .status-badge.status-en_progreso {
    background: #78350f;
    color: #fcd34d;
}

body.dark-mode .status-badge.status-hecho {
    background: #064e3b;
    color: #6ee7b7;
}
/* ==========================================
🏢 SELECTOR DE TIPO DE CUENTA (REGISTRO)
========================================== */
.tipo-cuenta-selector {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    flex: 1;
    font-size: 0.85rem;
    background: var(--bg-body);
}
.radio-label:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}
.radio-label input[type="radio"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}
.radio-label:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
    font-weight: 500;
}
.grupo-input-container {
    animation: fadeIn 0.3s ease;
    background: var(--bg-body);
    padding: 12px;
    border-radius: 8px;
    border: 1px dashed var(--primary-color);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
🏢 BADGE DE GRUPO (HEADER)
========================================== */
.grupo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 6px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}
.grupo-badge i {
    font-size: 0.65rem;
}

/* ==========================================
🔑 BOTÓN CAMBIAR CONTRASEÑA
========================================== */
.btn-cambiar-pass {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
    text-decoration: none;
}
.btn-cambiar-pass:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}
.btn-cambiar-pass i {
    font-size: 0.85rem;
}

/* ==========================================
🔑 ESTILOS AUTH ERROR/SUCCESS (para modales)
========================================== */
.auth-success {
    background: #d1fae5;
    color: #065f46;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    border-left: 4px solid #10b981;
}
.btn-new-contact {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-new-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-new-contact:hover::before {
    left: 100%;
}

.btn-new-contact:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-new-contact:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-new-contact i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-new-contact:hover i {
    transform: rotate(90deg) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .btn-new-contact {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}