/* =====================================================
   TEMA DE SEGURIDAD - SISTEMA ACCESO VISITANTES
   ===================================================== */

:root {
    /* Colores principales */
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f3460;
    --success: #00d4aa;
    --warning: #ff6b35;
    --danger: #e94560;
    --light: #f8f9fa;
    --dark: #0f0f23;
    
    /* Colores de seguridad */
    --security-blue: #1e3a8a;
    --security-green: #059669;
    --security-orange: #ea580c;
    --security-red: #dc2626;
    --security-gray: #6b7280;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Bordes */
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    /* Transiciones */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --highlight-color: #e94560;
    --text-light: #ffffff;
    --text-muted: #b8b8b8;
    --border-color: #2a2a3e;
    --card-bg: rgba(26, 26, 46, 0.9);
    --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-accent: linear-gradient(135deg, #0f3460 0%, #e94560 100%);
    --shadow-primary: 0 8px 32px rgba(26, 26, 46, 0.3);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* =====================================================
   RESET Y CONFIGURACIÓN BASE
   ===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--light);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.security-theme {
    background-attachment: fixed;
}

/* =====================================================
   COMPONENTES DE SEGURIDAD
   ===================================================== */

.security-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.security-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.security-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--security-blue), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.security-icon i {
    font-size: 2rem;
    color: white;
}

/* =====================================================
   NAVEGACIÓN
   ===================================================== */

.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-brand i {
    color: var(--security-green);
}

.nav-link {
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--security-green) !important;
    transform: translateY(-1px);
}

/* =====================================================
   BOTONES
   ===================================================== */

.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::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: var(--transition-normal);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--security-blue), var(--accent));
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent), var(--security-blue));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: linear-gradient(135deg, var(--security-green), #10b981);
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    background: linear-gradient(135deg, #10b981, var(--security-green));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-warning {
    background: linear-gradient(135deg, var(--security-orange), #f97316);
    box-shadow: var(--shadow-md);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f97316, var(--security-orange));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: linear-gradient(135deg, var(--security-red), #ef4444);
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ef4444, var(--security-red));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* =====================================================
   FORMULARIOS
   ===================================================== */

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--light);
    transition: var(--transition-normal);
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--security-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 170, 0.25);
    color: var(--light);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-label {
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.5rem;
}

/* =====================================================
   MODALES
   ===================================================== */

.modal-content {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: var(--light);
    font-weight: 700;
}

.btn-close {
    filter: invert(1);
}

/* =====================================================
   TARJETAS DE ESTADÍSTICAS
   ===================================================== */

.card {
    border: none;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-3px);
}

.card-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.card-body {
    background: rgba(255, 255, 255, 0.02);
}

/* =====================================================
   LOADING Y ANIMACIONES
   ===================================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Animación de pulso para iconos de seguridad */
@keyframes securityPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 212, 170, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 170, 0);
    }
}

.security-pulse {
    animation: securityPulse 2s infinite;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .security-card {
        margin-bottom: 1rem;
    }
    
    .security-icon {
        width: 60px;
        height: 60px;
    }
    
    .security-icon i {
        font-size: 1.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* =====================================================
   ESTADOS ESPECIALES
   ===================================================== */

.text-primary {
    color: var(--security-green) !important;
}

.text-success {
    color: var(--security-green) !important;
}

.text-warning {
    color: var(--security-orange) !important;
}

.text-danger {
    color: var(--security-red) !important;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Estados de invitaciones */
.invitation-status {
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    color: white !important;
}

.invitation-status.active,
.invitation-status.activa {
    background: rgba(0, 212, 170, 0.3);
    color: white !important;
    border: 1px solid var(--security-green);
}

.invitation-status.expired,
.invitation-status.expirada {
    background: rgba(220, 38, 38, 0.3);
    color: white !important;
    border: 1px solid var(--security-red);
}

.invitation-status.used,
.invitation-status.usada {
    background: rgba(107, 114, 128, 0.3);
    color: white !important;
    border: 1px solid var(--security-gray);
}

.invitation-status.canceled,
.invitation-status.cancelada {
    background: rgba(239, 68, 68, 0.3);
    color: white !important;
    border: 1px solid var(--security-red);
}

/* Estilos para invitaciones recientes */
.recent-invitation-item {
    color: white !important;
}

.recent-invitation-item .invitation-name {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.recent-invitation-item .invitation-details {
    color: white !important;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.recent-invitation-item .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.recent-invitation-item strong {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.recent-invitation-item small {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* =====================================================
   ESTILOS PARA TARJETAS DEL DASHBOARD
   ===================================================== */

/* Tarjetas de estadísticas del dashboard */
.security-card .card-title {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.security-card h3 {
    color: white !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Solo texto, no iconos con clases de color específicas */
.security-card h3.text-primary,
.security-card h3.text-success,
.security-card h3.text-warning,
.security-card h3.text-info {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.security-card .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.security-card small {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Iconos en las tarjetas del dashboard - mantener colores originales */
.security-card .fas {
    /* Los iconos mantienen sus colores originales (text-primary, text-success, etc.) */
}

/* Títulos de secciones en el dashboard */
.security-card .card-header h5 {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* =====================================================
   UTILIDADES
   ===================================================== */

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.box-shadow {
    box-shadow: var(--shadow-lg);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--security-green), var(--security-blue)) 1;
}

/* =====================================================
   SCROLLBAR PERSONALIZADA
   ===================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--security-green);
}

/* =====================================================
   SELECTION
   ===================================================== */

::selection {
    background: var(--security-green);
    color: white;
}

::-moz-selection {
    background: var(--security-green);
    color: white;
}

/* Logo Styles */
.navbar-brand img {
    transition: all 0.3s ease;
    max-height: 30px;
    width: auto;
}

.navbar-brand:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.main-logo {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.logo-section {
    text-align: center;
}

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Navigation */
.navbar {
    background: var(--gradient-primary) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-primary);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--highlight-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--highlight-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Security Cards */
.security-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.security-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.security-card:hover::before {
    left: 100%;
}

.security-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--highlight-color);
}

/* Security Icon */
.security-icon {
    font-size: 4rem;
    color: var(--highlight-color);
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    border: none;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--highlight-color);
    color: var(--highlight-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--highlight-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.card-header {
    background: var(--gradient-primary);
    border-bottom: 1px solid var(--border-color);
    border-radius: 15px 15px 0 0 !important;
    color: var(--text-light);
    font-weight: 600;
}

/* Forms */
.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 0.2rem rgba(233, 69, 96, 0.25);
    color: var(--text-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Estilos específicos para select */
.form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 0.2rem rgba(233, 69, 96, 0.25);
    color: var(--text-light);
}

/* Opciones del select */
.form-select option {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px;
}

/* Para navegadores que soportan ::-webkit-select */
.form-select::-webkit-select-placeholder {
    color: var(--text-muted);
}

/* Modal */
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow-primary);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--gradient-primary);
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    background: var(--gradient-primary);
    border-radius: 0 0 15px 15px;
}

/* Tables */
.table {
    color: var(--text-light);
}

.table th {
    background: var(--gradient-primary);
    border-color: var(--border-color);
    color: var(--text-light);
    font-weight: 600;
}

.table td {
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.05);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
    border-left: 4px solid #17a2b8;
}

/* QR Code */
.qr-container {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    display: inline-block;
    box-shadow: var(--shadow-card);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--highlight-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d63384;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--highlight-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: var(--gradient-accent) 1;
}

.glow {
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .security-card {
        background: rgba(26, 26, 46, 0.95);
    }
    
    .form-control {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* =====================================================
   ACCIONES DE INVITACIONES
   ===================================================== */

.invitation-actions {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.recent-invitation-item:hover .invitation-actions {
    opacity: 1;
}

.invitation-actions .dropdown-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.invitation-actions .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.invitation-actions .dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
}

.invitation-actions .dropdown-item {
    color: var(--text-light);
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
}

.invitation-actions .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.invitation-actions .dropdown-item.text-danger:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

.invitation-actions .dropdown-divider {
    border-color: var(--border-color);
    margin: 0.25rem 0;
}

/* Mejorar espaciado en invitaciones */
.recent-invitation-item {
    padding: 0.75rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
}

.recent-invitation-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(2px);
}

/* Responsive para acciones */
@media (max-width: 576px) {
    .invitation-actions {
        opacity: 1;
    }
    
    .recent-invitation-item {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .recent-invitation-item .text-end {
        text-align: left !important;
        margin-top: 0.5rem;
    }
    
    .invitation-actions {
        align-self: flex-end;
        margin-top: 0.5rem;
    }
}

/* =====================================================
   BOTONES DE ACCIÓN DIRECTOS - INVITACIONES
   ===================================================== */

.invitation-actions-buttons {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.invitation-actions-buttons .btn {
    min-width: 32px;
    height: 32px;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.invitation-actions-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.invitation-actions-buttons .btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.invitation-actions-buttons .btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.invitation-actions-buttons .btn-outline-success {
    border-color: #28a745;
    color: #28a745;
}

.invitation-actions-buttons .btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.invitation-actions-buttons .btn-outline-warning {
    border-color: #ffc107;
    color: #ffc107;
}

.invitation-actions-buttons .btn-outline-warning:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.invitation-actions-buttons .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.invitation-actions-buttons .btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Mejorar el layout de las invitaciones */
.recent-invitation-item {
    padding: 0.75rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
    position: relative;
}

.recent-invitation-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(2px);
}

/* Responsive para botones */
@media (max-width: 576px) {
    .invitation-actions-buttons {
        margin-top: 0.5rem;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 0.15rem;
    }
    
    .recent-invitation-item {
        flex-direction: column;
        align-items: flex-start !important;
        padding: 0.5rem !important;
    }
    
    .recent-invitation-item .text-end {
        text-align: left !important;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .invitation-actions-buttons {
        align-self: flex-end;
        margin-top: 0.5rem;
        width: auto;
    }
    
    .invitation-actions-buttons .btn {
        min-width: 28px;
        height: 28px;
        font-size: 0.75rem;
        padding: 0.15rem;
        border-radius: 4px;
    }
    
    /* Hacer los botones más compactos en móvil */
    .invitation-actions-buttons .btn i {
        font-size: 0.7rem;
    }
    
    /* Reducir el espacio entre elementos de la invitación */
    .recent-invitation-item .invitation-name {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .recent-invitation-item .invitation-details {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .recent-invitation-item .text-muted {
        font-size: 0.75rem;
    }
}

/* Tooltips para mejor UX */
.invitation-actions-buttons .btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 0.25rem;
}

/* Versión ultra-compacta para móviles muy pequeños */
@media (max-width: 480px) {
    .invitation-actions-buttons {
        gap: 0.1rem;
        margin-top: 0.25rem;
    }
    
    .invitation-actions-buttons .btn {
        min-width: 24px;
        height: 24px;
        font-size: 0.65rem;
        padding: 0.1rem;
    }
    
    .invitation-actions-buttons .btn i {
        font-size: 0.6rem;
    }
    
    .recent-invitation-item {
        padding: 0.4rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .recent-invitation-item .invitation-name {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }
    
    .recent-invitation-item .invitation-details {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
    
    .recent-invitation-item .text-muted {
        font-size: 0.7rem;
    }
    
    /* Hacer que los botones se mantengan en una línea */
    .invitation-actions-buttons {
        flex-wrap: nowrap;
        overflow: hidden;
    }
} 