* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden
}

.font-outfit {
    font-family: 'Outfit', sans-serif
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px
}

.glass-strong {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3)
}

.dark .glass-strong {
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08)
}

.gradient-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef)
}

.gradient-accent {
    background: linear-gradient(135deg, #f43f5e, #ec4899)
}

.gradient-success {
    background: linear-gradient(135deg, #10b981, #34d399)
}

.gradient-warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24)
}

.gradient-info {
    background: linear-gradient(135deg, #3b82f6, #60a5fa)
}

.gradient-cinema {
    background: linear-gradient(135deg, #0f172a, #1e1b4b, #312e81)
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1)
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1)
}

.dark .card-hover:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3)
}

.sidebar-link {
    transition: all 0.3s ease;
    position: relative
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #6366f1, #d946ef);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease
}

.sidebar-link:hover::before,
.sidebar-link.active::before {
    transform: scaleY(1)
}

.sidebar-link.active {
    background: rgba(99, 102, 241, 0.1)
}

.dark .sidebar-link.active {
    background: rgba(99, 102, 241, 0.2)
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff
}

.dark .notif-badge {
    border-color: #1e293b
}

.tooltip-container {
    position: relative
}

.tooltip-container .tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    transition: all 0.2s;
    z-index: 100;
    pointer-events: none
}

.tooltip-container:hover .tooltip {
    visibility: visible;
    opacity: 1
}

.dark .tooltip-container .tooltip {
    background: #f8fafc;
    color: #1e293b
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out
}

.tab-content.active {
    display: block
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none
}

.toast {
    pointer-events: auto;
    padding: 14px 20px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 420px;
    animation: slideUp 0.4s ease-out;
    transition: all 0.3s ease
}

.toast.removing {
    opacity: 0;
    transform: translateX(100%)
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px
}

.modal-backdrop.active {
    display: flex
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease-out
}

.dark .modal-content {
    background: #1e293b
}

.popup-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    min-width: 180px;
    z-index: 50;
    display: none;
    animation: scaleIn 0.2s ease-out;
    overflow: hidden
}

.popup-menu.show {
    display: block
}

.dark .popup-menu {
    background: #1e293b;
    border-color: #334155
}

.star-interactive i {
    cursor: pointer;
    transition: all 0.2s
}

.star-interactive i:hover {
    transform: scale(1.3)
}

.sentiment-bar {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: #f1f5f9
}

.dark .sentiment-bar {
    background: #334155
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center
}

html.theme-transition,
html.theme-transition * {
    transition: background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease !important
}

@media(max-width:640px) {
    .toast {
        min-width: 260px;
        max-width: calc(100vw - 40px)
    }
}

@media print {

    .sidebar,
    .top-header,
    .fab,
    .toast-container {
        display: none !important
    }

    .main-wrap {
        margin-left: 0 !important
    }
}