/* Estilos modernos para SoundSite - Inspirado en diseños profesionales */

/* Variables CSS */
:root {
    --primary-color: #0f766e;
    --primary-dark: #115e59;
    --secondary-color: #38bdf8;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

/* Reset y base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: #ffffff;
    min-height: 100vh;
}

/* Mejoras modernas para glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Cards modernas */
.modern-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: 0 18px 36px -28px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(226, 232, 240, 0.85);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.9), rgba(6, 182, 212, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px -30px rgba(15, 118, 110, 0.24);
    border-color: rgba(20, 184, 166, 0.3);
}

.modern-card:hover::before {
    opacity: 1;
}

/* Botones modernos */
.btn-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn-modern::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-modern:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
}

/* Input modernos */
.input-modern {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    background: white;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.input-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.input-modern:hover {
    border-color: var(--gray-400);
}

/* Sidebar white */
.sidebar-modern {
    position: fixed;
    inset: 0 auto 0 0;
    height: 100vh;
    width: 16rem;
    background: #ffffff;
    border-right: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 8px 0 30px -26px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    z-index: 1000;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-modern::before, .sidebar-modern::after {
    display: none;
}

.sidebar-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem 1.5rem;
    gap: 1.75rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 24px -22px rgba(15, 23, 42, 0.25);
}

.sidebar-logo {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.95), rgba(6, 182, 212, 0.95));
    overflow: hidden;
}

.sidebar-logo-img {
    position: relative;
    z-index: 1;
    width: 76%;
    height: 76%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(15, 118, 110, 0.35));
}

.sidebar-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
    animation: sidebarPulse 4s ease-in-out infinite;
}

.sidebar-kicker {
    font-size: 0.55rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(45, 212, 191, 0.8);
    margin-bottom: 0.25rem;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.04em;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.sidebar-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    color: rgba(15, 23, 42, 0.7);
    text-decoration: none;
    border: 1px solid rgba(226, 232, 240, 0);
    transition: transform 0.2s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.sidebar-item::after {
    display: none;
}

.sidebar-item:hover {
    color: #0f766e;
    transform: translateX(4px);
    border-color: rgba(20, 184, 166, 0.2);
    background: #ffffff;
    box-shadow: 0 12px 24px -24px rgba(15, 23, 42, 0.4);
}

.sidebar-item.active {
    color: #ffffff;
    border-color: rgba(15, 118, 110, 0.35);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.95), rgba(15, 118, 110, 0.95));
    box-shadow: 0 18px 30px -18px rgba(15, 118, 110, 0.55);
}

.sidebar-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    background: rgba(226, 232, 240, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.sidebar-item.active .sidebar-icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.sidebar-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f172a;
}

.sidebar-sub {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(71, 85, 105, 0.55);
    margin-top: 0.15rem;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 1.25rem;
    margin: 0 -1.5rem -1.5rem -1.5rem;
    border-top: 1px solid rgba(226, 232, 240, 1);
    background: #ffffff;
    box-shadow: none;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.sidebar-avatar {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 20px -18px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.avatar-ring {
    display: none;
}

.sidebar-user-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.sidebar-user-role {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(71, 85, 105, 0.4);
}

.sidebar-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    color: #0f766e;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: #ffffff;
    border: 1px solid rgba(20, 184, 166, 0.4);
    box-shadow: 0 14px 26px -20px rgba(20, 184, 166, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sidebar-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -20px rgba(20, 184, 166, 0.45);
}

.sidebar-logout i {
    font-size: 0.95rem;
}

/* Dashboard stats cards */
.stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #ffffff;
    box-shadow: 0 18px 38px -28px rgba(15, 23, 42, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 16px;
    bottom: 16px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.9), rgba(45, 212, 191, 0.6));
}

.stat-card::after {
    display: none;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(148, 163, 184, 0.5);
    box-shadow: 0 26px 52px -32px rgba(15, 118, 110, 0.28);
}

.stat-card:hover::before {
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.15);
}

.stat-card:hover::after {
    display: none;
}

.stat-card.primary::before {
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.95), rgba(6, 182, 212, 0.7));
}

.stat-card.success::before {
    background: linear-gradient(180deg, rgba(13, 148, 136, 0.95), rgba(16, 185, 129, 0.7));
}

.stat-card.warning::before {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.95), rgba(251, 191, 36, 0.7));
}

.stat-card.danger::before {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.95), rgba(248, 113, 113, 0.7));
}

.stat-card.info::before {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.65));
}

.stat-card.primary {
    background: linear-gradient(145deg, rgba(240, 253, 250, 0.75), rgba(255, 255, 255, 0.95));
    border-color: rgba(14, 165, 233, 0.25);
}

.stat-card.success {
    background: linear-gradient(145deg, rgba(236, 253, 245, 0.7), rgba(255, 255, 255, 0.95));
    border-color: rgba(16, 185, 129, 0.25);
}

.stat-card.warning {
    background: linear-gradient(145deg, rgba(255, 249, 237, 0.7), rgba(255, 255, 255, 0.95));
    border-color: rgba(250, 204, 21, 0.2);
}

.stat-card.danger {
    background: linear-gradient(145deg, rgba(254, 226, 226, 0.7), rgba(255, 255, 255, 0.95));
    border-color: rgba(239, 68, 68, 0.22);
}

.stat-card.info {
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.7), rgba(255, 255, 255, 0.95));
    border-color: rgba(59, 130, 246, 0.2);
}
.stat-card h3 {
    color: #0f172a;
}

.stat-card p {
    color: rgba(51, 65, 85, 0.8);
}

.stat-icon {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    margin-bottom: 1.1rem;
    color: #f8fafc;
    box-shadow: 0 14px 22px -16px rgba(15, 118, 110, 0.35);
    overflow: hidden;
}

.stat-icon::after {
    content: '';
    position: absolute;
    inset: -40% -40% 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 65%);
    opacity: 0.4;
}

.stat-icon.primary {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.8), rgba(6, 182, 212, 0.85));
}

.stat-icon.success {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.72), rgba(16, 185, 129, 0.85));
}

.stat-icon.warning {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.72), rgba(250, 204, 21, 0.85));
}

.stat-icon.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.75), rgba(248, 113, 113, 0.85));
}

.stat-icon.info {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.78), rgba(59, 130, 246, 0.85));
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(51, 65, 85, 0.75);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.18);
    color: rgba(15, 23, 42, 0.75);
}

.stat-trend i {
    font-size: 0.7rem;
}

.stat-trend.positive {
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.12);
    color: rgba(4, 120, 87, 0.9);
}

.stat-trend.neutral {
    border-color: rgba(251, 191, 36, 0.25);
    background: rgba(251, 191, 36, 0.12);
    color: rgba(180, 83, 9, 0.9);
}

.stat-trend.warning {
    border-color: rgba(251, 146, 60, 0.25);
    background: rgba(251, 146, 60, 0.12);
    color: rgba(217, 119, 6, 0.9);
}

/* Tabla moderna */
.table-modern {
    width: 100%;
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.table-modern thead {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

.table-modern th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-200);
}

.table-modern td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.table-modern tbody tr {
    transition: all 0.3s ease;
}

.table-modern tbody tr:hover {
    background: var(--gray-50);
    transform: scale(1.001);
}

/* Avatar moderno */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    object-fit: cover;
    transition: all 0.3s ease;
}

.avatar:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Badge moderno */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Header futurista */
.header-modern {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.6rem;
    margin: 0 1.2rem 1.2rem 1.2rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 14px 32px -20px rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.header-modern::before,
.header-modern::after {
    display: none;
}

.header-left {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.header-toggle {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #0f766e;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 18px -16px rgba(15, 118, 110, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px -12px rgba(15, 118, 110, 0.45);
}

.header-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(71, 85, 105, 0.7);
}

.header-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.header-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    color: rgba(71, 85, 105, 0.85);
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    font-size: 0.82rem;
}

.header-brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 154, 143, 0.92), rgba(43, 196, 195, 0.92));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 22px -18px rgba(17, 113, 135, 0.35);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.header-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-date i {
    color: rgba(15, 118, 110, 0.9);
}

.header-right {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(30, 41, 59, 0.85);
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 18px -16px rgba(15, 23, 42, 0.2);
}

.header-chip i {
    font-size: 0.85rem;
    color: rgba(71, 85, 105, 0.85);
}

.header-chip.online {
    position: relative;
    padding-left: 1.1rem;
    color: rgba(4, 120, 87, 0.9);
    border-color: rgba(16, 185, 129, 0.45);
}

.chip-dot {
    position: absolute;
    left: 0.45rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
    animation: pulse 1.8s infinite;
}

.header-chip.success {
    border-color: rgba(15, 118, 110, 0.45);
    background: #ffffff;
    color: rgba(15, 118, 110, 0.9);
}

.header-chip.warning {
    border-color: rgba(249, 115, 22, 0.35);
    background: #ffffff;
    color: rgba(194, 65, 12, 0.9);
}

.header-chip.neutral {
    border-color: rgba(148, 163, 184, 0.4);
    background: #ffffff;
    color: rgba(71, 85, 105, 0.85);
}

@media (max-width: 1280px) {
    .header-modern {
        margin: 0 1.1rem 1.1rem 1.1rem;
        padding: 1.15rem 1.6rem;
    }
}

@media (max-width: 1024px) {
    .header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.75rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .sidebar-modern {
        width: 18rem;
    }
}

@media (max-width: 768px) {
    .header-modern {
        margin: 0 1rem 1rem 1rem;
        padding: 1.35rem 1.5rem;
    }
    
    .header-title {
        font-size: 1.75rem;
    }
    
    .header-right {
        gap: 0.65rem;
    }
    
    .header-chip {
        font-size: 0.68rem;
        padding: 0.55rem 0.85rem;
    }
    
    .sidebar-modern {
        width: 16rem;
    }
}

@media (max-width: 640px) {
    .header-right {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-chip {
        width: 100%;
        justify-content: center;
    }
}

/* Animaciones mejoradas */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes sidebarPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.45;
    }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-fade-scale {
    animation: fadeInScale 0.4s ease-out;
}

/* Loader moderno */
.loader-modern {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* SoundSite Loading Elegante */
.soundsite-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    gap: 24px;
}

.soundsite-logo-loader {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: logoFloat 3s ease-in-out infinite;
}

.soundsite-logo-loader::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    opacity: 0.3;
    animation: logoPulse 2s ease-in-out infinite;
    transform: scale(1.2);
}

.soundsite-logo-loader i {
    color: white;
    font-size: 28px;
    z-index: 1;
    position: relative;
}

.soundsite-loading-bars {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
}

.loading-bar {
    width: 4px;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: loadingWave 1.2s ease-in-out infinite;
}

.loading-bar:nth-child(1) { height: 16px; animation-delay: 0s; }
.loading-bar:nth-child(2) { height: 24px; animation-delay: 0.1s; }
.loading-bar:nth-child(3) { height: 32px; animation-delay: 0.2s; }
.loading-bar:nth-child(4) { height: 40px; animation-delay: 0.3s; }
.loading-bar:nth-child(5) { height: 32px; animation-delay: 0.4s; }
.loading-bar:nth-child(6) { height: 24px; animation-delay: 0.5s; }
.loading-bar:nth-child(7) { height: 16px; animation-delay: 0.6s; }

.soundsite-loading-text {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 16px;
    animation: textFade 2s ease-in-out infinite;
}

.soundsite-loading-subtext {
    color: var(--gray-400);
    font-size: 14px;
    text-align: center;
    max-width: 300px;
    line-height: 1.5;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes logoPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1.2);
    }
    50% {
        opacity: 0.1;
        transform: scale(1.4);
    }
}

@keyframes loadingWave {
    0%, 100% {
        transform: scaleY(0.4);
        opacity: 0.7;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes floatOrb {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.95;
    }
    50% {
        transform: translateY(-12px) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.95;
    }
}

/* Loading Overlay para pantalla completa */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.loading-logo-wrapper {
    width: 88px;
    height: 88px;
    border-radius: 28px;
    background: radial-gradient(circle at 30% 30%, rgba(43, 196, 195, 0.18), rgba(15, 154, 143, 0.05));
    display: grid;
    place-items: center;
    margin: 0 auto;
    box-shadow: 0 22px 44px -28px rgba(15, 118, 110, 0.35);
    border: 1px solid rgba(15, 154, 143, 0.15);
    animation: floatOrb 3s ease-in-out infinite;
}

.loading-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(15, 118, 110, 0.28));
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

/* Efectos de hover mejorados */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Responsive mejorado */
@media (max-width: 768px) {
    .sidebar-modern {
        transform: translateX(-100%);
    }
    
    .sidebar-modern.open {
        transform: translateX(0);
    }
    
    .modern-card {
        padding: 16px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .table-modern th,
    .table-modern td {
        padding: 12px 16px;
    }
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback para navegadores que no soportan background-clip */
    font-weight: 700;
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
}

.shadow-colored {
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.2);
}

/* Slider personalizado moderno */
.custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--gray-200);
    outline: none;
    transition: all 0.3s ease;
}

.custom-slider:hover {
    background: var(--gray-300);
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.custom-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.custom-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Audio player moderno */
.audio-player-modern {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.audio-player-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.play-button-modern {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.play-button-modern:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.play-button-modern:active {
    transform: scale(0.95);
}

/* Visualizador de audio moderno */
.audio-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    margin: 16px 0;
    gap: 4px;
}

.audio-bar-modern {
    width: 4px;
    height: 8px;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: audioWave 1.5s ease-in-out infinite;
    opacity: 0.6;
}

.audio-bar-modern:nth-child(1) { animation-delay: 0s; }
.audio-bar-modern:nth-child(2) { animation-delay: 0.1s; }
.audio-bar-modern:nth-child(3) { animation-delay: 0.2s; }
.audio-bar-modern:nth-child(4) { animation-delay: 0.3s; }
.audio-bar-modern:nth-child(5) { animation-delay: 0.4s; }
.audio-bar-modern:nth-child(6) { animation-delay: 0.5s; }
.audio-bar-modern:nth-child(7) { animation-delay: 0.6s; }

@keyframes audioWave {
    0%, 100% { 
        height: 8px;
        opacity: 0.6;
    }
    50% { 
        height: 24px;
        opacity: 1;
    }
}

/* Modal moderno */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-modern {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid var(--gray-200);
}

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

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
    flex: 1;
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-left: 16px;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.modal-body {
    padding: 24px;
}

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Notificaciones modernas */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.notification.success {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.notification.error {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
}

.notification.warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
}

.notification.info {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.notification-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notification-title {
    font-weight: 600;
    margin: 0 0 2px 0;
}

.notification-message {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
    opacity: 0.8;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* Form styles */
.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    background: white;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:hover {
    border-color: var(--gray-400);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    background: white;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select:hover {
    border-color: var(--gray-400);
}

/* Input groups */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 16px;
    color: var(--gray-400);
    z-index: 1;
}

.input-group .form-input {
    padding-left: 48px;
}

/* Action Buttons */
.action-group {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.55rem;
    margin-left: auto;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.12), rgba(15, 23, 42, 0.05));
    box-shadow: 0 18px 35px -25px rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

@supports not ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))) {
    .action-group {
        background: rgba(15, 23, 42, 0.08);
    }
}

.action-btn {
    --action-accent-start: rgba(59, 130, 246, 0.95);
    --action-accent-end: rgba(79, 70, 229, 0.95);
    --action-glow: rgba(59, 130, 246, 0.45);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.15rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(130deg, var(--action-accent-start), var(--action-accent-end));
    box-shadow: 0 12px 28px -16px var(--action-glow);
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
    cursor: pointer;
    min-width: 88px;
}

.action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.action-btn::after {
    content: '';
    position: absolute;
    inset: -120% -40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.action-btn > * {
    position: relative;
    z-index: 1;
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 22px 38px -18px var(--action-glow), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    filter: brightness(1.05);
}

.action-btn:hover::before {
    opacity: 1;
}

.action-btn:hover::after {
    transform: translateX(120%);
}

.action-btn:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 12px 22px -18px var(--action-glow);
}

.action-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.action-btn i {
    font-size: 0.9rem;
}

.action-text {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.action-btn.edit {
    --action-accent-start: rgba(14, 165, 233, 0.95);
    --action-accent-end: rgba(79, 70, 229, 0.95);
    --action-glow: rgba(14, 165, 233, 0.55);
}

.action-btn.suspend {
    --action-accent-start: rgba(250, 204, 21, 0.95);
    --action-accent-end: rgba(249, 115, 22, 0.95);
    --action-glow: rgba(251, 191, 36, 0.5);
}

.action-btn.activate {
    --action-accent-start: rgba(16, 185, 129, 0.95);
    --action-accent-end: rgba(5, 150, 105, 0.95);
    --action-glow: rgba(16, 185, 129, 0.45);
}

.action-btn.delete {
    --action-accent-start: rgba(248, 113, 113, 0.95);
    --action-accent-end: rgba(239, 68, 68, 0.95);
    --action-glow: rgba(248, 113, 113, 0.55);
}

/* Responsive Action Buttons */
@media (max-width: 1024px) {
    .action-group {
        gap: 0.5rem;
        padding: 0.35rem 0.45rem;
    }
    
    .action-btn {
        min-width: auto;
        padding: 0.5rem 0.9rem;
    }
    
    .action-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .action-group {
        gap: 0.3rem;
        padding: 0.3rem 0.4rem;
    }
    
    .action-btn {
        padding: 0.45rem 0.6rem;
    }
    
    .action-btn i {
        font-size: 0.85rem;
    }
}

/* Logo Upload Styles */
.logo-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.current-logo {
    padding: 0.75rem;
    background-color: #eff6ff;
    border-radius: 0.5rem;
    border: 1px solid #bfdbfe;
}

.logo-preview img,
.current-logo img {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #d1d5db;
}

/* Form File Input Styling */
input[type="file"].form-input {
    padding: 0.5rem;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    transition: all 0.2s ease-in-out;
}

input[type="file"].form-input:hover {
    border-color: #9ca3af;
}

input[type="file"].form-input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Button icons */
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    background: white;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-700);
}

.btn-icon.primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.btn-icon.success {
    border-color: var(--success-color);
    color: var(--success-color);
}

.btn-icon.success:hover {
    background: var(--success-color);
    color: white;
}

.btn-icon.warning {
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.btn-icon.warning:hover {
    background: var(--warning-color);
    color: white;
}

.btn-icon.secondary {
    border-color: var(--gray-300);
    color: var(--gray-500);
}

.btn-icon.secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-700);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
    animation: dropdownSlideIn 0.2s ease-out;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--gray-100);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 4px 0;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Tables */
.table-modern-container {
    overflow-x: auto;
}

.table-row-hover:hover {
    background: var(--gray-50);
}

/* Pagination */
.pagination-modern {
    display: flex;
    align-items: center;
    justify-content: between;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.pagination-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--gray-300);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 12px;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Volume slider */
.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: var(--gray-200);
    outline: none;
    transition: all 0.3s ease;
}

.volume-slider:hover {
    background: var(--gray-300);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Switch toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Form groups modernos */
.form-group-modern {
    margin-bottom: 20px;
}

.form-label-modern {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 14px;
}

.form-input-modern {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    background: white;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input-modern:hover {
    border-color: var(--gray-400);
}

.form-input-modern.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Dropdown moderno */
.dropdown-modern {
    position: relative;
    display: inline-block;
}

.dropdown-content-modern {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
    animation: dropdownSlideIn 0.2s ease-out;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item-modern {
    display: block;
    padding: 12px 16px;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--gray-100);
}

.dropdown-item-modern:last-child {
    border-bottom: none;
}

.dropdown-item-modern:hover {
    background: var(--gray-50);
    color: var(--primary-color);
}

/* Breadcrumb moderno */
.breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 20px;
}

.breadcrumb-item-modern {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item-modern:hover {
    color: var(--primary-color);
}

.breadcrumb-item-modern.active {
    color: var(--gray-800);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--gray-400);
}

/* Pagination moderna */
.pagination-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
}

.pagination-item-modern {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pagination-item-modern:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.pagination-item-modern.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Status indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-indicator.online .status-dot {
    background: var(--success-color);
}

.status-indicator.offline .status-dot {
    background: var(--error-color);
}

.status-indicator.pending .status-dot {
    background: var(--warning-color);
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Responsive improvements */
@media (max-width: 1024px) {
    .sidebar-modern {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
    }
}

@media (max-width: 768px) {
    .sidebar-modern {
        width: 100%;
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .modal-content-modern {
        margin: 20px;
        max-width: none;
    }
    
    .notification-modern {
        left: 20px;
        right: 20px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .notification-modern.show {
        transform: translateY(0);
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .modern-card {
        padding: 16px;
    }
}

/* === Light theme refresh - Abril 2024 === */
:root {
    --primary-color: #0f9a8f;
    --primary-dark: #0b7f74;
    --secondary-color: #2bc4c3;
    --success-color: #1aae74;
    --warning-color: #f7ad3b;
    --error-color: #ef6a6a;
    --gray-50: #f4f8ff;
    --gray-100: #eef3ff;
    --gray-200: #dee8ff;
    --gray-300: #cad9fb;
    --gray-400: #a9bfef;
    --gray-500: #7f99c7;
    --gray-600: #617a9f;
    --gray-700: #4b5d7b;
    --gray-800: #2f3c58;
    --gray-900: #1e283e;
    --surface-50: #f4f8ff;
    --surface-100: #e9f1ff;
    --surface-200: #d6e5ff;
    --surface-elevated: #ffffff;
    --ink-strong: #1c2742;
    --ink-muted: #627293;
    --shadow-sm: 0 6px 18px -12px rgba(13, 117, 145, 0.25);
    --shadow-md: 0 18px 34px -20px rgba(13, 117, 145, 0.28);
    --shadow-lg: 0 32px 64px -36px rgba(13, 117, 145, 0.32);
    --shadow-xl: 0 48px 96px -48px rgba(13, 117, 145, 0.34);
}

html {
    background: #ffffff;
}

body {
    background: #ffffff;
    color: var(--ink-strong);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink-strong);
}

p, span, label, small {
    color: var(--ink-muted);
}

.header-modern {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 247, 255, 0.96) 100%);
    border-color: rgba(206, 219, 255, 0.85);
    box-shadow: 0 26px 56px -34px rgba(17, 113, 135, 0.32);
}

.header-kicker {
    color: rgba(98, 114, 147, 0.7);
}

.header-title {
    color: var(--ink-strong);
}

.header-date {
    background: rgba(233, 241, 255, 0.8);
    border-color: rgba(206, 219, 255, 0.8);
    color: var(--ink-muted);
}

.header-date i {
    color: var(--primary-color);
}

.header-chip {
    background: rgba(233, 241, 255, 0.9);
    border-color: rgba(206, 219, 255, 0.85);
    color: var(--ink-muted);
    box-shadow: 0 14px 26px -20px rgba(17, 113, 135, 0.22);
}

.header-chip i {
    color: inherit;
}

.header-chip.online {
    background: rgba(233, 252, 247, 0.95);
    border-color: rgba(26, 174, 116, 0.35);
    color: var(--primary-dark);
}

.header-chip.success {
    background: rgba(229, 255, 243, 0.95);
    border-color: rgba(52, 211, 153, 0.35);
    color: var(--primary-dark);
}

.header-chip.warning {
    background: rgba(255, 248, 229, 0.95);
    border-color: rgba(247, 173, 59, 0.35);
    color: #c26a16;
}

.sidebar-modern {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
    border-right: 1px solid rgba(206, 219, 255, 0.9);
    box-shadow: 18px 0 58px -34px rgba(19, 94, 117, 0.28);
}

.sidebar-brand {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(206, 219, 255, 0.85);
    box-shadow: 0 18px 36px -24px rgba(19, 94, 117, 0.2);
}

.sidebar-logo {
    background: linear-gradient(135deg, rgba(15, 154, 143, 0.95), rgba(43, 196, 195, 0.95));
}

.sidebar-kicker {
    color: rgba(26, 174, 116, 0.65);
}

.sidebar-title {
    color: var(--ink-strong);
}

.sidebar-item {
    color: rgba(28, 39, 66, 0.62);
    border-color: transparent;
}

.sidebar-item:hover {
    background: rgba(232, 246, 255, 0.92);
    border-color: rgba(43, 196, 195, 0.25);
    color: var(--primary-dark);
    box-shadow: 0 18px 30px -22px rgba(24, 107, 133, 0.26);
}

.sidebar-item.active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, rgba(15, 154, 143, 0.92), rgba(43, 196, 195, 0.92));
    box-shadow: 0 26px 42px -26px rgba(17, 134, 147, 0.4);
}

.sidebar-icon {
    background: rgba(233, 241, 255, 0.85);
    border-color: rgba(206, 219, 255, 0.85);
    color: var(--primary-dark);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sidebar-item.active .sidebar-icon {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.sidebar-label {
    color: var(--ink-strong);
}

.sidebar-sub {
    color: rgba(28, 39, 66, 0.45);
}

.sidebar-footer {
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid rgba(206, 219, 255, 0.85);
}

.sidebar-avatar {
    background: rgba(233, 241, 255, 0.85);
    border-color: rgba(206, 219, 255, 0.85);
    color: var(--primary-dark);
}

.sidebar-user-role {
    color: rgba(28, 39, 66, 0.45);
}

.sidebar-logout {
    background: linear-gradient(135deg, rgba(235, 253, 250, 0.95), rgba(226, 244, 255, 0.95));
    border-color: rgba(43, 196, 195, 0.38);
    color: var(--primary-dark);
    box-shadow: 0 22px 44px -30px rgba(17, 134, 147, 0.35);
}

.sidebar-logout:hover {
    box-shadow: 0 26px 50px -30px rgba(17, 134, 147, 0.38);
}

.modern-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 247, 255, 0.98) 100%);
    border: 1px solid rgba(206, 219, 255, 0.9);
    box-shadow: 0 34px 60px -40px rgba(19, 94, 117, 0.32);
}

.modern-card:hover {
    border-color: rgba(43, 196, 195, 0.28);
    box-shadow: 0 40px 72px -44px rgba(17, 113, 135, 0.36);
}

.modern-card::before {
    background: linear-gradient(90deg, rgba(15, 154, 143, 0.85), rgba(43, 196, 195, 0.75));
}

.modern-card p {
    color: var(--ink-muted);
}

.stat-card {
    border-radius: 22px;
    padding: 26px;
    border: 1px solid rgba(206, 219, 255, 0.86);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 247, 255, 0.93) 100%);
    box-shadow: 0 34px 64px -42px rgba(19, 94, 117, 0.35);
}

.stat-card::before {
    left: auto;
    right: -46px;
    top: -46px;
    bottom: auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 196, 195, 0.22), transparent 68%);
    opacity: 1;
}

.stat-card.primary {
    border-color: rgba(43, 196, 195, 0.28);
    background: linear-gradient(165deg, rgba(229, 250, 247, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.stat-card.success {
    border-color: rgba(52, 211, 153, 0.26);
    background: linear-gradient(165deg, rgba(228, 252, 242, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.stat-card.warning {
    border-color: rgba(247, 173, 59, 0.24);
    background: linear-gradient(165deg, rgba(255, 248, 229, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.stat-card.danger {
    border-color: rgba(239, 106, 106, 0.24);
    background: linear-gradient(165deg, rgba(255, 239, 239, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.stat-card.info {
    border-color: rgba(96, 165, 250, 0.28);
    background: linear-gradient(165deg, rgba(234, 243, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.stat-card:hover {
    box-shadow: 0 40px 80px -48px rgba(17, 113, 135, 0.38);
}

.stat-card h3,
.stat-value {
    color: var(--ink-strong);
}

.stat-card p,
.stat-label {
    color: rgba(28, 39, 66, 0.55);
}

.stat-trend {
    color: var(--ink-muted);
}

.stat-trend.positive {
    color: var(--success-color);
}

.stat-trend.neutral {
    color: var(--ink-muted);
}

.stat-trend.negative {
    color: var(--error-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    box-shadow: 0 18px 36px -20px rgba(17, 113, 135, 0.32);
}

.stat-icon::after {
    opacity: 0.5;
}

.stat-icon.primary {
    background: linear-gradient(135deg, #0f9a8f, #2bc4c3);
}

.stat-icon.success {
    background: linear-gradient(135deg, #1aae74, #34d399);
}

.stat-icon.warning {
    background: linear-gradient(135deg, #f7ad3b, #facc15);
}

.stat-icon.danger {
    background: linear-gradient(135deg, #ef6a6a, #f87171);
}

.stat-icon.info {
    background: linear-gradient(135deg, #4281ff, #60a5fa);
}

.hover-lift {
    transition: transform 0.28s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 42px 82px -48px rgba(17, 113, 135, 0.34);
}

.btn-modern {
    background: linear-gradient(135deg, #0f9a8f, #21c8b4);
    box-shadow: 0 22px 42px -28px rgba(17, 113, 135, 0.45);
}

.btn-modern:hover {
    box-shadow: 0 26px 48px -30px rgba(17, 113, 135, 0.48);
}

.btn-secondary {
    background: rgba(233, 241, 255, 0.96);
    color: var(--primary-dark);
    border-color: rgba(43, 196, 195, 0.32);
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(219, 242, 255, 0.98);
    border-color: rgba(43, 196, 195, 0.48);
    color: var(--primary-color);
}

.btn-secondary i {
    color: inherit;
}

.btn-success {
    background: linear-gradient(135deg, #1aae74, #34d399);
}

.btn-warning {
    background: linear-gradient(135deg, #f7ad3b, #facc15);
}

.btn-danger {
    background: linear-gradient(135deg, #ef6a6a, #f87171);
}

.input-modern {
    background: rgba(255, 255, 255, 0.98);
    border: 1.5px solid rgba(206, 219, 255, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.input-modern:hover {
    border-color: rgba(43, 196, 195, 0.3);
}

.input-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(43, 196, 195, 0.14);
}

.dropdown-menu {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.98));
    border: 1px solid rgba(206, 219, 255, 0.85);
    box-shadow: 0 28px 56px -36px rgba(19, 94, 117, 0.28);
}

.dropdown-item {
    color: var(--ink-strong);
}

.dropdown-item:hover {
    background: rgba(233, 244, 255, 0.9);
    color: var(--primary-dark);
}

.dropdown-divider {
    background: rgba(206, 219, 255, 0.7);
}

.status-indicator {
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    background: rgba(233, 252, 247, 0.9);
    border: 1px solid rgba(26, 174, 116, 0.3);
    color: var(--primary-dark);
    box-shadow: 0 12px 24px -18px rgba(17, 113, 135, 0.22);
}

.status-dot {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6);
}

.status-indicator.offline {
    background: rgba(255, 240, 240, 0.92);
    border-color: rgba(239, 106, 106, 0.35);
    color: #d44d4d;
}

.status-indicator.pending {
    background: rgba(255, 247, 233, 0.92);
    border-color: rgba(247, 173, 59, 0.35);
    color: #c26a16;
}

.status-indicator.online .status-dot {
    background: var(--success-color);
}

.status-indicator.offline .status-dot {
    background: var(--error-color);
}

.status-indicator.pending .status-dot {
    background: var(--warning-color);
}

.audio-player-modern {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
    border: 1px solid rgba(206, 219, 255, 0.9);
    box-shadow: 0 36px 68px -44px rgba(19, 94, 117, 0.32);
}

.audio-player-modern::before {
    opacity: 0.7;
    background: radial-gradient(circle at 20% 20%, rgba(43, 196, 195, 0.18), transparent 72%);
}

.table-modern {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.98));
    border: 1px solid rgba(206, 219, 255, 0.75);
}

.table-modern thead {
    background: rgba(236, 244, 255, 0.95);
    color: var(--ink-strong);
}

.table-modern tbody tr:hover {
    background: rgba(233, 244, 255, 0.65);
}

.tag-modern {
    background: rgba(233, 241, 255, 0.92);
    border-color: rgba(206, 219, 255, 0.85);
    color: var(--ink-muted);
}

.tag-modern.success {
    background: rgba(233, 252, 247, 0.9);
    border-color: rgba(26, 174, 116, 0.3);
    color: var(--primary-dark);
}

.badge-dot {
    background: linear-gradient(135deg, #ef6a6a, #f87171);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #ffffff;
        color: var(--ink-strong);
    }
    
    .modern-card,
    .stat-card,
    .audio-player-modern,
    .modal-content-modern,
    .dropdown-content-modern,
    .sidebar-modern {
        background: var(--surface-elevated);
        border-color: rgba(206, 219, 255, 0.75);
    }
    
    .table-modern {
        background: var(--surface-elevated);
    }
    
    .table-modern thead {
        background: rgba(236, 244, 255, 0.95);
    }
    
    .form-input-modern {
        background: var(--surface-elevated);
        border-color: rgba(206, 219, 255, 0.75);
        color: var(--ink-strong);
    }
}
