:root {
    --bg-primary: #0E141B;
    --bg-secondary: #1A2332;
    --text-primary: #FFFFFF;
    --text-secondary: #B8BCC8;
    --accent-blue: #5e29ea;
    --accent-purple: #6029EB;
    --accent-pink: #E91E63;
    --success: #00C896;
    --warning: #FFA500;
}

/* Load Product Sans if available locally or provided in assets/fonts */
@font-face {
    font-family: 'Product Sans';
    src: local('Product Sans'), local('ProductSans'), url('../fonts/ProductSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Light Mode Variables */
[data-theme="light"] {
    --bg-primary: #F5F7FA;
    --bg-secondary: #FFFFFF;
    --text-primary: #141414;
    --text-secondary: #61656A;
    --accent-blue: #5e29ea;
    --accent-purple: #6029EB;
    --accent-pink: #E91E63;
    --success: #00C896;
    --warning: #FFA500;
}

body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1f3a 100%);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="light"] body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #E8ECF1 100%);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(96, 41, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(233, 30, 99, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
}

[data-theme="light"] body::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(96, 41, 235, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(233, 30, 99, 0.05) 0%, transparent 50%);
}

.container-fluid {
    position: relative;
    /* z-index: 1; */
}

/* Header */
.navbar {
    background: transparent !important;
    padding: 1.5rem 0;
    position: relative;
}

[data-theme="dark"] .navbar {
    background: transparent !important;
}

[data-theme="light"] .navbar {
    background: transparent !important;
}

/* Index page navbar - always transparent */
.index-page .navbar {
    background: transparent !important;
}

[data-theme="dark"] .index-page .navbar {
    background: transparent !important;
}

[data-theme="light"] .index-page .navbar {
    background: transparent !important;
}

.navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
}

/* Back to Home Nav Button (in navbar) */
.back-to-home-nav {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.back-to-home-nav:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: var(--text-primary);
}

[data-theme="light"] .back-to-home-nav {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .back-to-home-nav:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.2);
}

.navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
}


.header-input-section {
    display: none;
    flex: 1;
    min-width: 0;
    margin: 0 1.5rem;
}

/* Header input section when moved below navbar on mobile */
.header-input-section.moved-below-navbar {
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 1rem;
}

.header-input-section .input-group {
    margin: 0;
    width: 100%;
    padding: 0 !important;
}

.navbar .d-flex.align-items-center {
    flex-shrink: 0;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Mobile Theme Switcher Button */
.mobile-theme-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.mobile-theme-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(94, 41, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.mobile-theme-btn:hover::before {
    width: 300px;
    height: 300px;
}

.mobile-theme-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(94, 41, 234, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-theme-btn:active {
    transform: translateY(0);
}

.mobile-theme-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.mobile-theme-btn:hover i {
    transform: rotate(15deg);
}

[data-theme="light"] .mobile-theme-btn {
    border: 1px solid rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .mobile-theme-btn::before {
    background: rgba(89, 27, 205, 0.1);
}

[data-theme="light"] .mobile-theme-btn:hover {
    border-color: rgba(89, 27, 205, 0.5);
    background: rgba(0, 0, 0, 0.03);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Product Sans', 'Google Sans', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logo .gradient-text {
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-login {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 34px;
    text-decoration: none;
    margin-right: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(94, 41, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.btn-login:hover::before {
    width: 300px;
    height: 300px;
}

.btn-login:hover {
    transform: translateY(-2px);
    border-color: rgba(94, 41, 234, 0.5);
}

.btn-login:active {
    transform: translateY(0);
}

[data-theme="light"] .btn-login {
    border: 1px solid rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-login::before {
    background: rgba(89, 27, 205, 0.1);
}

[data-theme="light"] .btn-login:hover {
    border-color: rgba(89, 27, 205, 0.5);
}

.btn-register {
    background: #352e4f;
    border: none;
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 34px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .btn-register {
    background: #5e29ea;
    color: #ffffff;
}

.btn-register::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;
    z-index: 0;
}

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

.btn-register::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.btn-register:hover::after {
    width: 300px;
    height: 300px;
}

.btn-register:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgb(132 41 235 / 17%);
}

/* User Profile Section */
.user-profile-section {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.user-profile-dropdown-wrapper {
    position: relative;
}

.user-profile-dropdown {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile-dropdown:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-profile-dropdown.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-profile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-profile-dropdown-wrapper.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Remove border-bottom from item that comes before logout */
.dropdown-item:not(.logout-item) + .dropdown-item.logout-item {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Remove border-bottom from item that is immediately before logout item */
.user-dropdown-menu .dropdown-item:not(.logout-item):nth-last-child(2) {
    border-bottom: none;
}

.dropdown-item.logout-item {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    color: #ff6b6b;
    border-bottom: none;
}

.dropdown-item.logout-item:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff5252;
}

.dropdown-item.logout-item i {
    color: #ff6b6b;
}

.dropdown-item.logout-item:hover i {
    color: #ff5252;
}

[data-theme="light"] .dropdown-item.logout-item {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.dropdown-item i {
    font-size: 0.85rem;
    color: var(--text-secondary);
    width: 16px;
    text-align: center;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.dropdown-item:hover i {
    color: var(--accent-purple);
}

[data-theme="light"] .user-dropdown-menu {
    background: var(--bg-secondary);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .dropdown-item {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .user-dropdown-menu .dropdown-item:not(.logout-item):nth-last-child(2) {
    border-bottom: none;
}

[data-theme="light"] .dropdown-item:not(.logout-item) + .dropdown-item.logout-item {
    border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-welcome {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-name i {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.notification-bell {
    position: relative;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3d3063, #3a4381);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="light"] .notification-bell {
    background: linear-gradient(135deg, #623fc9, #3116c5);
}

.notification-bell:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(94, 41, 234, 0.4);
}

.notification-bell i {
    color: #ffffff;
    font-size: 1.1rem;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ffffff;
    color: #5E29EA;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

[data-theme="light"] .user-profile-dropdown {
    background: var(--bg-secondary);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .user-profile-dropdown:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .notification-badge {
    border-color: var(--bg-primary);
}

/* Notification Modal Styles - Right Side Slide In */
.notification-modal {
    z-index: 1060;
}

.notification-modal .modal-dialog {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    max-width: 420px;
    width: 100%;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    height: 100vh;
}

/* Opening animation - Right to Left */
.notification-modal.show .modal-dialog,
.notification-modal.showing .modal-dialog {
    transform: translateX(0) !important;
}

/* Ensure initial state is off-screen */
.notification-modal:not(.show):not(.showing) .modal-dialog {
    transform: translateX(100%) !important;
}

/* Closing animation - Left to Right */
.notification-modal.fade:not(.show) .modal-dialog {
    transform: translateX(100%) !important;
}

.notification-modal.hiding .modal-dialog {
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-modal .modal-backdrop {
    z-index: 1059;
    transition: opacity 0.3s ease;
}

.notification-modal .modal-content {
    height: 100vh;
    border-radius: 0;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .notification-modal .modal-content {
    border-left-color: rgba(0, 0, 0, 0.1);
}

.notification-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

[data-theme="light"] .notification-modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.notification-modal-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-modal-title i {
    color: var(--accent-purple);
}

.notification-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 0.5rem;
    cursor: pointer;
    filter: none;
}

.notification-modal-close:hover {
    opacity: 1;
    color: var(--text-primary);
    transform: rotate(90deg);
}

.notification-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

.notification-list {
    padding: 0.5rem 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

[data-theme="light"] .notification-item {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .notification-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.notification-item.unread {
    background: rgba(94, 41, 234, 0.05);
}

[data-theme="light"] .notification-item.unread {
    background: rgba(94, 41, 234, 0.08);
}

.notification-item.unread:hover {
    background: rgba(94, 41, 234, 0.08);
}

[data-theme="light"] .notification-item.unread:hover {
    background: rgba(94, 41, 234, 0.12);
}

.notification-icon-wrapper {
    flex-shrink: 0;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.notification-icon.welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notification-icon.subscription {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.notification-icon.renewal {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.notification-icon.expire {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.notification-icon.api {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.notification-icon.profile {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.notification-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.7;
}

.notification-unread-dot {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 8px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

[data-theme="light"] .notification-modal-footer {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.btn-mark-all-read {
    width: 100%;
    background: var(--accent-purple);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-mark-all-read:hover {
    background: #4d1fd4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 41, 234, 0.3);
}

.btn-mark-all-read:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-modal .modal-dialog {
        max-width: 100%;
    }
}

.btn-register:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 90, 226, 0.3);
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.2rem;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

[data-theme="light"] .theme-switcher {
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-item {
    padding: 1rem 0.6rem;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.theme-icon {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-icon i {
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.theme-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.theme-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .theme-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-item.active {
    background: var(--accent-blue);
}

.theme-item.active .theme-icon i {
    color: #FFFFFF;
}

.theme-item.active .theme-label {
    color: #FFFFFF;
}

/* Hero Section */
.hero-section {
    padding: 4rem 3rem 0px  3rem;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title .title-shorten {
    color: var(--accent-pink);
}

.hero-title .title-your {
    color: var(--accent-purple);
}

.hero-title .title-links {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.link-input-section {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.input-group {
    background: var(--bg-secondary);
    border-radius: 34px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .input-group {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.input-group-text {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 0.5rem 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group-text i {
    font-size: 1rem;
}

.form-control {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 1rem;
    font-size: 1rem;
}

.form-control:focus {
    background: transparent;
    border: none;
    color: var(--text-primary);
    box-shadow: none;
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.btn-shorten {
    background: linear-gradient(90deg, #15182d, #231a33);
    border: none;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 34px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-shorten::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;
    z-index: -1;
}

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

.btn-shorten::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-shorten:hover::after {
    width: 400px;
    height: 400px;
}

.btn-shorten:hover {
    transform: scale(1.05) translateY(-2px);
}

.btn-shorten:active {
    transform: scale(0.98) translateY(0);
    box-shadow: 0 4px 10px rgba(94, 41, 234, 0.3);
}

[data-theme="light"] .btn-shorten {
    background: #5e29ea;
    color: #ffffff;
}


[data-theme="light"] .btn-shorten:active {
    box-shadow: 0 4px 10px rgba(89, 27, 205, 0.3);
}

.btn-shorten-mobile {
    display: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding: 0;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
}

.btn-shorten-desktop {
    display: inline-block;
}

.toggle-section {
    max-width: 800px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 54px !important;
    height: 27px !important;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23CFC6FF'/%3e%3c/svg%3e");
}

.form-check-input:not(:checked) {
    width: 54px !important;
    height: 27px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23CFC6FF'/%3e%3c/svg%3e");
}

.form-check-input:checked {
    width: 54px !important;
    height: 27px !important;
    background-color: #5e29ea;
    border-color: transparent;
}

.form-check-input:focus {
    border-color: #d8caff;
    outline: 0;
    width: 54px !important;
    height: 27px !important;
}

.usage-limit {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.usage-limit .text-primary {
    color: var(--accent-blue) !important;
}

.text-primary {
    color: #5e29ea !important;
}

.usage-limit-text {
    margin-bottom: 0.5rem;
}

.usage-number {
    color: var(--accent-pink) !important;
}

.register-link {
    text-decoration: underline;
    cursor: pointer;
    color: inherit;
    transition: opacity 0.3s ease;
}

.register-link:hover {
    opacity: 0.8;
    text-decoration: underline;
    color: inherit;
}

/* Table */
/* Navigation Tabs */
.table-nav-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-tab-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-tab-item i {
    font-size: 0.9rem;
}

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

.nav-tab-item.active {
    color: var(--text-primary);
}

.nav-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #5E29EA, #3B82F6);
    border-radius: 2px;
}

[data-theme="light"] .table-nav-tabs {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-tab-item.active::after {
    background: linear-gradient(90deg, #5E29EA, #3B82F6);
}

/* Mobile Nav Tabs */
.mobile-nav-tabs {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    padding-top: 1rem;
    padding-bottom: 0.75rem;
    margin-top: -1rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

[data-theme="light"] .mobile-nav-tabs {
    background: var(--bg-primary);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Add shadow when sticky (scrolled) */
.mobile-nav-tabs.sticky {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-nav-tabs.sticky {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-nav-tabs .nav-tab-item {
    font-size: 0.85rem;
    padding: 0.4rem 0;
    flex: 1;
    justify-content: center;
    text-align: center;
}

.mobile-nav-tabs .nav-tab-item i {
    font-size: 0.8rem;
}

/* Mobile Tab Content */
.mobile-history-tab-content,
.mobile-statistics-tab-content,
.mobile-click-stream-tab-content,
.mobile-settings-tab-content {
    display: block;
}

/* History Header Section */
.history-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 2rem; */
    /* padding: 1.5rem 0; */
}

.history-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-count {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1.5rem;
}

.history-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Entries Dropdown */
.entries-dropdown-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entries-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

.entries-dropdown {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    background-color: var(--bg-secondary) !important;
}

.entries-dropdown:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.3);
}

.entries-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(94, 41, 234, 0.2);
    background-color: var(--bg-secondary) !important;
}

/* Dark theme dropdown options */
.entries-dropdown option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="light"] .entries-dropdown {
    border-color: rgba(0, 0, 0, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235e29ea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-color: #ffffff !important;
}

[data-theme="light"] .entries-dropdown:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .entries-dropdown:focus {
    background-color: #ffffff !important;
}

/* Light theme dropdown options */
[data-theme="light"] .entries-dropdown option {
    background: #ffffff;
    color: var(--text-primary);
}

.history-action-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.history-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

[data-theme="light"] .history-action-btn {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

[data-theme="light"] .history-action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

/* Filter Dropdown */
.filter-dropdown-wrapper {
    position: relative;
}

.filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    min-width: 180px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-dropdown-wrapper.active .filter-dropdown-menu {
    display: block;
}

[data-theme="light"] .filter-dropdown-menu {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 4px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.filter-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .filter-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.filter-option label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.table-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.table-wrapper {
    height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 12px;
    margin-bottom: 1rem;
    position: relative;
}

/* Custom scrollbar for table wrapper */
.table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .table-wrapper::-webkit-scrollbar-track {
    background: #f8f9fa;
}

[data-theme="light"] .table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.table {
    background: transparent;
    border-radius: 12px;
    overflow: visible;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0 0.45rem;
    transition: background 0.3s ease;
    box-shadow: none;
    width: 100%;
}

/* [data-theme="light"] .table {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
} */

.table thead {
    background: transparent;
    transition: background 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 10;
}

[data-theme="light"] .table thead {
    background: transparent;
}

.table thead th {
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 1.2rem 1rem;
    font-size: 0.9rem;
    text-align: left;
    white-space: nowrap;
    background: #130f21 !important;
    transition: background 0.3s ease;
    position: sticky;
    top: 0;
}

[data-theme="light"] .table thead th {
    background: #5e29ea !important;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr {
    display: table-row;
}

.table tbody td {
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem;
    vertical-align: middle;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    border-radius: 0;
    height: 60px !important;
}

.table tbody tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.table tbody tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

[data-theme="light"] .table tbody td {
    background: var(--bg-secondary);
}

.table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

[data-theme="light"] .table tbody tr:hover td {
    background: rgba(0, 0, 0, 0.03);
}

/* Animation for new table row */
.table-row-new {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
    overflow: hidden;
}

.table-row-new td {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 0 !important;
}

.table-row-animate {
    animation: tableRowSlideIn 0.5s ease-out forwards;
}

.table-row-animate td {
    animation: tableRowCellSlideIn 0.5s ease-out forwards;
}

@keyframes tableRowSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    50% {
        opacity: 0.7;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

@keyframes tableRowCellSlideIn {
    0% {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        height: 0 !important;
    }
    100% {
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
        height: 60px !important;
    }
}

/* Short Link Column */
.short-link-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: flex-start;
}

.short-link {
    color: #ffc007e0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    flex: 0 1 auto;
    margin-left: 1.5rem;
    margin-right: 0;
    padding-right: 0;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: visible;
}

[data-theme="light"] .short-link {
    color: #5e29ea;
}

.short-link:hover {
    text-decoration: underline;
}

.copy-btn {
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    flex-shrink: 0;
    padding: 0;
    vertical-align: middle;
    position: relative;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    min-width: 250px;
    max-width: calc(100vw - 60px);
}

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

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

/* Desktop Toast Icon (Original Design) */
.toast-icon {
    color: var(--success);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-message {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Mobile Toast Wrapper (Hidden on Desktop) */
.toast-mobile-wrapper {
    display: none;
}

/* Mobile Toast Elements */
.toast-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon-mobile {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-text-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.toast-message-mobile {
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast-close-btn {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.toast-close-btn:hover {
    opacity: 1;
}

.toast-message {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Toast Error/Warning Styles */
.toast-notification.toast-error {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.4);
    backdrop-filter: blur(10px);
}

.toast-notification.toast-error .toast-icon {
    color: #DC3545;
}

.toast-notification.toast-error .toast-message {
    color: #FF6B7A;
}

/* Mobile Toast Design - Match Screenshot */
@media (max-width: 768px) {
    .toast-notification {
        position: fixed;
        bottom: 20px !important;
        right: 15px !important;
        left: 15px !important;
        top: auto !important;
        max-width: calc(100% - 30px);
        width: calc(100% - 30px);
        border-radius: 16px;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        overflow: hidden;
        z-index: 10000 !important;
    }

    /* Hide desktop elements on mobile */
    .toast-icon {
        display: none !important;
    }
    
    .toast-message {
        display: none !important;
    }

    /* Show mobile wrapper on mobile */
    .toast-mobile-wrapper {
        display: flex;
        align-items: center;
        gap: 1rem;
        width: 100%;
        position: relative;
        z-index: 1;
    }

    .toast-notification::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

    .toast-notification::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -10%;
        width: 150px;
        height: 150px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

    .toast-content {
        position: relative;
        z-index: 1;
        gap: 1rem;
    }

    .toast-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .toast-icon {
        font-size: 1.4rem;
    }

    .toast-title {
        display: block;
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
    }

    .toast-message {
        font-size: 0.85rem;
        line-height: 1.5;
        opacity: 0.9;
    }

    .toast-close-btn {
        display: block;
        font-size: 1.1rem;
        padding: 0.5rem;
    }

    /* Success Toast - Light Green */
    .toast-notification:not(.toast-error):not(.toast-warning) {
        background: #d4edda;
        border: none;
        color: #155724;
    }

    .toast-notification:not(.toast-error):not(.toast-warning) .toast-icon {
        color: #28a745;
    }

    .toast-notification:not(.toast-error):not(.toast-warning) .toast-title {
        color: #155724;
    }

    .toast-notification:not(.toast-error):not(.toast-warning) .toast-message {
        color: #155724;
    }

    .toast-notification:not(.toast-error):not(.toast-warning) .toast-close-btn {
        color: #155724;
    }

    /* Error Toast - Light Pink */
    .toast-notification.toast-error {
        background: #f8d7da;
        border: none;
        color: #721c24;
    }

    .toast-notification.toast-error .toast-icon {
        color: #dc3545;
    }

    .toast-notification.toast-error .toast-title {
        color: #721c24;
    }

    .toast-notification.toast-error .toast-message {
        color: #721c24;
    }

    .toast-notification.toast-error .toast-close-btn {
        color: #721c24;
    }

    /* Warning Toast - Light Orange/Yellow */
    .toast-notification.toast-warning {
        background: #fff3cd;
        border: none;
        color: #856404;
    }

    .toast-notification.toast-warning .toast-icon {
        color: #ffc107;
    }

    .toast-notification.toast-warning .toast-title {
        color: #856404;
    }

    .toast-notification.toast-warning .toast-message {
        color: #856404;
    }

    .toast-notification.toast-warning .toast-close-btn {
        color: #856404;
    }
}

.toast-notification.toast-warning {
    background: rgba(255, 165, 0, 0.15);
    border-color: rgba(255, 165, 0, 0.4);
    backdrop-filter: blur(10px);
}

.toast-notification.toast-warning .toast-icon {
    color: #FFA500;
}

.toast-notification.toast-warning .toast-message {
    color: #FFC966;
}

[data-theme="light"] .toast-notification.toast-error {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
}

[data-theme="light"] .toast-notification.toast-error .toast-message {
    color: #DC3545;
}

[data-theme="light"] .toast-notification.toast-warning {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.3);
}

[data-theme="light"] .toast-notification.toast-warning .toast-message {
    color: #FF8C00;
}

[data-theme="light"] .toast-notification {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@keyframes toastSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastSlideOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}

.toast-notification.show {
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notification.hide {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.copy-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    animation: copySuccess 0.6s ease;
}

@keyframes copySuccess {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.2) rotate(5deg);
    }
    60% {
        transform: scale(0.9) rotate(-5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.copy-btn.copied::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00C896;
    font-size: 18px;
    font-weight: bold;
    z-index: 10;
    animation: checkmark 0.5s ease;
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

[data-theme="light"] .copy-btn[src*="copy-icon-dark"] {
    content: url('assets/img/copy-icon-light.svg');
}

/* Original Link Column */
.original-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    max-width: 100%;
}

.original-link:hover {
    color: var(--text-primary);
}

.platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.platform-icon i {
    font-size: 0.85rem;
}

/* Custom Platform Icon (SVG/Image) */
.platform-custom-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}


.youtube-icon {
    background: #FF0000;
    color: white;
}

.vimeo-icon {
    background: #1AB7EA;
    color: white;
    font-weight: 700;
}

.unsplash-icon {
    background: #000000;
    color: white;
    font-weight: 700;
}

.gmail-icon {
    color: white;
    padding: 2px;
}

.pdf-icon {
    background: #DC143C;
    color: white;
    padding: 2px;
}

.adventure-icon {
    background: #000000;
    color: white;
    font-weight: 700;
}

.link-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    max-width: 280px; /* Fixed max width for truncation */
}

/* Original Link - Clickable to copy */
.original-link {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.original-link:hover {
    opacity: 0.8;
}

/* QR Code Column */
.qr-code-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.qr-code-wrapper:hover {
    transform: scale(1.1);
}

.qr-code {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
    transition: box-shadow 0.3s ease;
    padding: 2px;
}

[data-theme="light"] .qr-code {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* QR Code Modal Styles */
.qr-modal-content {
    background: #1a1625;
    border: 1px solid #282333;
    border-radius: 16px;
    color: #ffffff;
    position: relative;
    padding: 0;
    max-width: 400px;
    margin: 0 auto;
}

[data-theme="light"] .qr-modal-content {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #5e29ea;
}

/* Mobile Modal - Bottom Up Animation */
@media (max-width: 768px) {
    #qrCodeModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        z-index: 1055;
    }
    
    #qrCodeModal.show .modal-dialog,
    #qrCodeModal.showing .modal-dialog {
        transform: translateY(0);
    }
    
    #qrCodeModal .modal-dialog-centered {
        align-items: flex-end;
        min-height: auto;
    }
    
    /* Modal backdrop animation for mobile */
    #qrCodeModal .modal-backdrop {
        transition: opacity 0.3s ease-out;
        background-color: rgba(0, 0, 0, 0.5);
    }
    
    #qrCodeModal.show .modal-backdrop {
        opacity: 1;
    }
    
    /* Ensure modal is full width on mobile */
    #qrCodeModal .modal-content {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        margin: 0;
    }
    
    .qr-modal-content {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        margin: 0;
    }
    
    .qr-modal-body {
        padding: 2rem 1.5rem 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .qr-modal-title {
        display: none;
    }
    
    .qr-code-display-wrapper {
        padding: 1.5rem;
        margin-bottom: 0;
        width: 100%;
    }
    
    .qr-code-display {
        max-width: 100%;
        width: 100%;
    }
    
    .qr-modal-link-section {
        margin-top: 0;
    }
    
    .qr-modal-link {
        font-size: 1rem;
        word-break: break-all;
        color: #ffffff;
    }
    
    [data-theme="light"] .qr-modal-link {
        color: #141414;
    }
    
    .qr-modal-actions {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 0;
    }
    
    .qr-download-btn {
        flex: 1;
        min-width: auto;
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .qr-share-btn {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }
    
    .qr-modal-close {
        width: 36px;
        height: 36px;
        top: 0.75rem;
        right: 0.75rem;
    }
}

.qr-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ffffff;
    background-image: none !important;
}

.qr-modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.qr-modal-close::before {
    content: '×';
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 300;
    display: block;
}

[data-theme="light"] .qr-modal-close {
    opacity: 0.8;
    color: #5e29ea;
    background: rgba(94, 41, 234, 0.1);
    border-color: rgba(94, 41, 234, 0.3);
    background-image: none !important;
}

[data-theme="light"] .qr-modal-close:hover {
    opacity: 1;
    background: rgba(94, 41, 234, 0.2);
}

.qr-modal-body {
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qr-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin: 0 0 2rem 0;
    text-transform: uppercase;
    font-family: sans-serif;
}

[data-theme="light"] .qr-modal-title {
    color: #5e29ea;
}

.qr-code-display-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: #ffffff;
    border: 2px solid #6029eb;
    border-radius: 12px;
    margin-bottom: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.qr-code-display-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .qr-code-display-wrapper {
    border-color: #6029eb;
}

[data-theme="light"] .qr-code-display-wrapper:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.qr-code-display-wrapper::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid #ffffff;
    border-radius: 8px;
    pointer-events: none;
}

.qr-code-display {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.qr-modal-link-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

.qr-modal-link {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.02em;
}

[data-theme="light"] .qr-modal-link {
    color: #141414;
}

.qr-modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.qr-download-btn {
    background: linear-gradient(135deg, #5e29ea 0%, #6029EB 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(94, 41, 234, 0.3);
}

.qr-download-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: left 0.5s ease;
    z-index: 0;
}

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

.qr-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94, 41, 234, 0.4);
}

.qr-download-btn:active {
    transform: translateY(0);
}

.qr-download-btn span,
.qr-download-btn i {
    position: relative;
    z-index: 1;
}

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

.qr-share-btn {
    background: linear-gradient(135deg, #5e29ea 0%, #6029EB 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(94, 41, 234, 0.3);
}

.qr-share-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.qr-share-btn:hover::before {
    width: 200px;
    height: 200px;
}

.qr-share-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(94, 41, 234, 0.4);
}

.qr-share-btn:active {
    transform: translateY(0) scale(1);
}

.qr-share-btn i {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

[data-theme="light"] .qr-download-btn {
    background: linear-gradient(135deg, #5e29ea 0%, #6029EB 100%);
    box-shadow: 0 4px 12px rgba(94, 41, 234, 0.25);
}

[data-theme="light"] .qr-download-btn:hover {
    box-shadow: 0 6px 20px rgba(94, 41, 234, 0.35);
}

[data-theme="light"] .qr-share-btn {
    background: linear-gradient(135deg, #5e29ea 0%, #6029EB 100%);
    box-shadow: 0 4px 12px rgba(94, 41, 234, 0.25);
}

[data-theme="light"] .qr-share-btn:hover {
    box-shadow: 0 6px 20px rgba(94, 41, 234, 0.35);
}

.qr-modal-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qr-icon-btn {
    background: transparent;
    border: 2px solid #ffc107;
    border-radius: 6px;
    color: #ffc107;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    font-size: 1rem;
}

.qr-icon-btn:hover {
    background: #ffc107;
    color: #1a1625;
    transform: scale(1.1);
}

[data-theme="light"] .qr-icon-btn {
    border-color: #5e29ea;
    color: #5e29ea;
}

[data-theme="light"] .qr-icon-btn:hover {
    background: #5e29ea;
    color: #ffffff;
}

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

/* Clicks Column */
.clicks-cell {
    color: var(--text-primary);
    font-weight: 500;
    text-align: center;
}

/* Status Column */
.status-active {
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    font-weight: 500;
}

.status-active .status-icon {
    color: #28a745;
}

.status-inactive {
    color: #ffc107;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    font-weight: 500;
}

.status-inactive .status-icon {
    color: #ffc107;
}

.status-expire {
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    font-weight: 500;
}

.status-expire .status-icon {
    color: #dc3545;
}

[data-theme="light"] .status-active {
    color: #28a745;
}

[data-theme="light"] .status-active .status-icon {
    color: #28a745;
}

[data-theme="light"] .status-inactive {
    color: #ffc107;
}

[data-theme="light"] .status-inactive .status-icon {
    color: #ffc107;
}

[data-theme="light"] .status-expire {
    color: #dc3545;
}

[data-theme="light"] .status-expire .status-icon {
    color: #dc3545;
}

.status-icon {
    font-size: 1rem;
}

.status-icon i {
    font-size: 0.9rem;
}

/* Date Column */
.date-cell {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.sort-icon {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 0.3rem;
    opacity: 0.6;
}

.sort-icon i {
    font-size: 0.75rem;
}

.table-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="light"] .table-footer {
    background: rgba(0, 0, 0, 0.03);
}

.table-footer .text-primary {
    color: var(--accent-blue) !important;
    text-decoration: none;
    font-weight: 600;
}

/* Table Pagination */
.table-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 1.5rem;
    padding: 0.5rem 0;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

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

.pagination-btn i {
    font-size: 0.7rem;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pagination-number {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    min-width: 32px;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.pagination-number.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.pagination-number.active:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

[data-theme="light"] .pagination-btn {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

[data-theme="light"] .pagination-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .pagination-number {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

[data-theme="light"] .pagination-number:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .pagination-number.active {
    background: #5e29ea;
    border-color: #5e29ea;
    color: #ffffff;
}

[data-theme="light"] .pagination-number.active:hover {
    background: #4d1fd9;
    border-color: #4d1fd9;
}

/* Action Column */
.action-cell {
    text-align: center;
    padding: 0.4rem 1rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    width: 36px;
    height: 36px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: scale(1.1);
}

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

.deactivate-btn:hover {
    background: rgba(255, 165, 0, 0.2);
    color: var(--warning);
}

.delete-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

[data-theme="light"] .action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .deactivate-btn:hover {
    background: rgba(255, 165, 0, 0.15);
    color: var(--warning);
}

[data-theme="light"] .delete-btn:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

/* Mobile Links Section */
.mobile-links-section {
    padding: 1rem 0;
}

.mobile-links-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: background 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* [data-theme="light"] .mobile-links-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
} */

.mobile-links-header {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Mobile Filter Button */
.mobile-filter-wrapper {
    position: relative;
}

.mobile-filter-btn {
    transition: all 0.3s ease;
}

.mobile-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05);
}

.mobile-filter-btn:active {
    transform: scale(0.95);
}

[data-theme="light"] .mobile-filter-btn {
    border-color: rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .mobile-filter-btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
}

/* Mobile Filter Dropdown Menu */
.mobile-filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 180px;
    display: none !important;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-filter-wrapper.active .mobile-filter-dropdown-menu {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

[data-theme="light"] .mobile-filter-dropdown-menu {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile Filter Option */
.mobile-filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.mobile-filter-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .mobile-filter-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-purple);
}

.mobile-filter-option label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    flex: 1;
    user-select: none;
}

.mobile-link-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.mobile-link-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Animation for new mobile link item */
.mobile-link-item-new {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
    overflow: hidden;
}

.mobile-link-item-animate {
    animation: mobileLinkSlideIn 0.5s ease-out forwards;
}

@keyframes mobileLinkSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    50% {
        opacity: 0.7;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

[data-theme="light"] .mobile-link-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.mobile-link-url {
    color: var(--text-primary);
    font-size: 0.9rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-link-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.mobile-copy-btn {
    background: rgb(31 42 61);
    border: none;
    color: #60549f;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.mobile-copy-btn i {
    font-size: 0.9rem;
    color: inherit;
}

[data-theme="light"] .mobile-copy-btn {
    background: rgb(94 41 234 / 15%);
    color: #5e29ea;
}

[data-theme="light"] .mobile-copy-btn i {
    color: inherit;
}

.mobile-dropdown-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}

.mobile-dropdown-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.mobile-link-item.active .mobile-dropdown-btn i {
    transform: rotate(180deg);
}

.mobile-link-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 0;
}

.mobile-link-item.active .mobile-link-dropdown {
    max-height: 500px;
    padding: 1rem 0;
}

.mobile-dropdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-dropdown-row:first-child {
    border-top: none;
}

.mobile-dropdown-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 100px;
}

.mobile-dropdown-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    text-align: right;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.mobile-qr-code-wrapper {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    padding: 4px;
    border-radius: 6px;
}

.mobile-qr-code-wrapper:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-qr-code {
    width: 30px;
    height: 30px;
    object-fit: contain;
    pointer-events: none;
}

.mobile-qr-code-wrapper {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    padding: 4px;
    border-radius: 6px;
}

.mobile-qr-code-wrapper:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .mobile-qr-code-wrapper:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-qr-code {
    width: 30px;
    height: 30px;
    object-fit: contain;
    pointer-events: none;
}

.mobile-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mobile-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-action-btn.deactivate-btn {
    color: var(--warning);
}

.mobile-action-btn.deactivate-btn:hover {
    background: rgba(255, 165, 0, 0.3);
    color: var(--warning);
}

.mobile-action-btn.delete-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

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

[data-theme="light"] .mobile-dropdown-row {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-footer-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 1rem 0;
}

/* Mobile Empty State */
.mobile-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.mobile-empty-state h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mobile-empty-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

#emptyStateAnimation {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title .title-shorten {
        display: block;
    }
    
    .hero-title .title-your {
        display: block;
    }
    
    .hero-title .title-links {
        display: block;
    }
    
    .theme-switcher {
        display: none;
    }
    
    .hero-section {
        padding: 2rem 0 2rem;
    }
    
    .link-input-section {
        margin-bottom: 1.5rem;
    }
    
    .input-group {
        padding: 0.3rem;
    }
    
    .form-control {
        padding: 0.8rem 0.8rem 0.8rem 0.4rem;
        font-size: 0.9rem;
    }
    
    .btn-shorten-mobile {
        display: flex;
    }
    
    .btn-shorten-desktop {
        display: none;
    }
    
    .btn-shorten {
        padding: 0;
        min-width: 45px;
    }
    
    .usage-limit {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .usage-limit-text {
        margin-bottom: 0.3rem;
    }
    
    .navbar {
        padding: 1rem 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .btn-login {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .form-check-input {
        width: 45px !important;
        height: 22px !important;
    }
    
    .form-check-input:not(:checked) {
        width: 45px !important;
        height: 22px !important;
    }
    
    .form-check-input:checked {
        width: 45px !important;
        height: 22px !important;
    }
    
    .form-check-input:focus {
        width: 45px !important;
        height: 22px !important;
    }
    
    /* Mobile Hero Section Specific Styles */
    .mob-hero-section .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .mob-hero-section .hero-title .title-shorten {
        display: block;
        font-size: 1.75rem;
    }
    
    .mob-hero-section .hero-title .title-your {
        display: inline;
        font-size: 1.5rem;
    }
    
    .mob-hero-section .hero-title .title-links {
        display: inline;
        font-size: 1.5rem;
    }
    
    .mob-hero-section .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .mob-hero-section .usage-limit {
        margin-bottom: 0.1rem;
    }
}

/* ============================================
   Authentication Pages (Login/Register) Styles
   ============================================ */

/* Auth Wrapper */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    position: relative;
    z-index: 1;
    background: var(--bg-primary);
}

/* Auth Left Side (Form Section) */
.auth-left {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
    position: relative;
    background: #1a2332;
}

[data-theme="light"] .auth-left {
    background: #ffffff;
}

[data-theme="dark"] .auth-left {
    background: #1a2332;
}

/* Auth Right Side (Image Section) */
.auth-right {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Auth Form Container */
.auth-form-container {
    max-width: 450px;
    width: 100%;
}

/* Auth Image Container */
.auth-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Auth Header (Logo + Back Button) */
.auth-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.auth-logo {
    flex: 1;
}

.auth-logo a {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Product Sans', 'Google Sans', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Back to Home Button */
.back-to-home {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.back-to-home:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

[data-theme="light"] .back-to-home {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .back-to-home:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Auth Title & Subtitle */
.auth-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

/* Welcome Back Section on Index Page */
.welcome-section {
    padding: 2rem 0 1rem 0;
    position: relative;
    z-index: 1;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .welcome-section {
        padding: 1.5rem 0 1rem 0;
    }

    .welcome-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .welcome-title {
        font-size: 1.75rem;
    }
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

/* Auth Form Groups */
.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

/* Auth Input Fields */
.auth-input {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(94, 41, 234, 0.1);
    background: var(--bg-primary);
}

[data-theme="light"] .auth-input {
    background: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .auth-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(94, 41, 234, 0.1);
    background: #ffffff;
}

.auth-input::placeholder {
    color: var(--text-secondary);
}

/* Auth Input Icon */
.auth-input-icon {
    position: relative;
}

.auth-input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 1;
}

.auth-input-icon .auth-input {
    padding-left: 2.75rem;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 1;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--text-primary);
}

/* Forgot Password */
.forgot-password {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-password a {
    color: var(--accent-purple);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* Form Check (Terms & Conditions) */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-check-input {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-purple);
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.form-check-label a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Password Strength Indicator */
/* Password Strength Indicator - Desktop */
.password-strength-wrapper {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.password-strength-bars {
    display: flex;
    gap: 0.25rem;
    width: 100%;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

[data-theme="light"] .strength-bar {
    background: #e0e0e0;
}

[data-theme="dark"] .strength-bar {
    background: rgba(255, 255, 255, 0.1);
}

.strength-bar.active.very-weak {
    background: #dc3545;
}

.strength-bar.active.so-so {
    background: #ff9800;
}

.strength-bar.active.good {
    background: #4caf50;
}

.strength-bar.active.great {
    background: #28a745;
}

.password-strength-label {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: right;
    min-height: 20px;
    transition: color 0.3s ease;
}

.password-strength-label.strength-very-weak {
    color: #dc3545;
}

.password-strength-label.strength-so-so {
    color: #ff9800;
}

.password-strength-label.strength-good {
    color: #4caf50;
}

.password-strength-label.strength-great {
    color: #28a745;
}

.password-strength-label:empty {
    display: none;
}


#passwordMatch {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    display: none;
}

/* Error Message Styling */
.error-message {
    margin-top: 0.5rem;
    margin-left: 0.5rem;
    font-size: 0.85rem;
    color: #dc3545;
    min-height: 20px;
    line-height: 1.4;
}

.error-message:empty {
    display: none;
}

[data-theme="light"] .error-message {
    color: #dc3545;
}

/* Hide error messages on mobile - only show border color */
@media (max-width: 768px) {
    .error-message {
        display: none !important;
    }
}

/* Error State for Inputs */
.auth-input.error {
    border-color: #dc3545 !important;
    background: var(--bg-primary);
}

[data-theme="light"] .auth-input.error {
    border-color: #dc3545 !important;
    background: #ffffff;
}

.auth-input.error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
    background: var(--bg-primary);
}

[data-theme="light"] .auth-input.error:focus {
    background: #ffffff;
}

/* Success State for Inputs */
.auth-input.success {
    border-color: var(--success) !important;
    background: var(--bg-primary);
}

[data-theme="light"] .auth-input.success {
    border-color: var(--success) !important;
    background: #ffffff;
}

.auth-input.success:focus {
    border-color: var(--success) !important;
    box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.15) !important;
    background: var(--bg-primary);
}

[data-theme="light"] .auth-input.success:focus {
    background: #ffffff;
}

.form-check-input.error {
    border-color: #dc3545 !important;
}

.form-check-input.error ~ .form-check-label {
    color: #dc3545;
}

/* Auth Primary Button */
.btn-auth-primary {
    background: linear-gradient(135deg, #5e29ea 0%, #6029EB 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(94, 41, 234, 0.3);
}

.btn-auth-primary::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;
    z-index: 0;
}

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

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94, 41, 234, 0.4);
}

.btn-auth-primary:active {
    transform: translateY(0);
}

.btn-auth-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-auth-primary span,
.btn-auth-primary i {
    position: relative;
    z-index: 1;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .divider::before,
[data-theme="light"] .divider::after {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.divider::before {
    margin-right: 0.75rem;
}

.divider::after {
    margin-left: 0.75rem;
}

/* Google Button */
.btn-google {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    color: #5f6368;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    background: #f8f9fa;
}

.btn-google:active {
    transform: translateY(0);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.btn-google i {
    font-size: 1.25rem;
    color: #4285F4;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* Mobile Header - Removed (Not used) */

/* Responsive Styles */
@media (max-width: 992px) {
    .auth-wrapper {
        flex-direction: column;
    }

    .auth-left,
    .auth-right {
        flex: 1;
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 2rem;
    }

    .auth-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .auth-wrapper {
        min-height: 100vh;
        padding: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* Show auth-header on mobile for Welcome Back text */
    .auth-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Auth Left - Centered Content Area */
    .auth-left {
        flex: 1;
        padding: 2rem 1.5rem;
        justify-content: center;
        width: 100%;
        max-width: 450px;
        background: none !important;
    }

    [data-theme="light"] .auth-left {
        background: none !important;
    }

    [data-theme="dark"] .auth-left {
        background: none !important;
    }

    /* Match navbar and body backgrounds on mobile auth pages only */
    .login-page .navbar,
    .register-page .navbar {
        background: #1a2332 !important;
    }

    [data-theme="light"] .login-page .navbar,
    [data-theme="light"] .register-page .navbar {
        background: #ffffff !important;
    }

    [data-theme="dark"] .login-page .navbar,
    [data-theme="dark"] .register-page .navbar {
        background: #1a2332 !important;
    }

    /* Index page navbar stays transparent on mobile */
    .index-page .navbar {
        background: transparent !important;
    }

    [data-theme="dark"] .index-page .navbar {
        background: transparent !important;
    }

    [data-theme="light"] .index-page .navbar {
        background: transparent !important;
    }

    /* Match auth-wrapper background with navbar on mobile */
    .auth-wrapper {
        background: #1a2332 !important;
    }

    [data-theme="light"] .auth-wrapper {
        background: #ffffff !important;
    }

    [data-theme="dark"] .auth-wrapper {
        background: #1a2332 !important;
    }

    /* Fix body background on auth pages to match navbar - remove gradient */
    body:has(.auth-wrapper) {
        background: #1a2332 !important;
        background-image: none !important;
    }

    body:has(.auth-wrapper)::before {
        display: none !important;
    }

    [data-theme="light"] body:has(.auth-wrapper) {
        background: #ffffff !important;
        background-image: none !important;
    }

    [data-theme="dark"] body:has(.auth-wrapper) {
        background: #1a2332 !important;
        background-image: none !important;
    }

    .auth-form-container {
        max-width: 100%;
        width: 100%;
    }

    .auth-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .auth-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .auth-form-group {
        margin-bottom: 1.25rem;
    }

    .auth-label {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .auth-input {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: 10px;
    }

    .auth-input-icon .auth-input {
        padding-left: 2.5rem;
    }

    /* Mobile Password Strength - Compact Design */
    /* Mobile Password Strength - Compact Mobile UI */
    .password-strength-wrapper {
        margin-top: 0.5rem;
        gap: 0.4rem;
    }

    .password-strength-bars {
        gap: 0.2rem;
        height: 3px;
    }

    .strength-bar {
        height: 3px;
        border-radius: 1.5px;
    }

    .password-strength-label {
        font-size: 0.75rem;
        min-height: 16px;
        text-align: right;
        font-weight: 500;
    }

    #passwordMatch {
        font-size: 0.8rem;
    }

    .form-check {
        margin-bottom: 1.25rem;
    }

    .form-check-label {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .forgot-password {
        margin-bottom: 1.25rem;
    }

    .forgot-password a {
        font-size: 0.85rem;
    }

    .btn-auth-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        border-radius: 10px;
        min-height: 48px;
    }

    .divider {
        margin: 1.5rem 0;
        font-size: 0.85rem;
    }

    .btn-google {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 10px;
        min-height: 48px;
    }

    .btn-google i {
        font-size: 1.1rem;
    }

    .auth-footer {
        margin-top: 1.5rem;
        font-size: 0.85rem;
    }

    .back-to-home {
        display: none;
    }

    .theme-switcher {
        display: none;
    }
}

/* ========================================
   TAB PAGES STYLING (Statistics, Click Stream, Settings)
   ======================================== */

/* Tab Content Panel Base */
.tab-content-panel {
    color: var(--text-primary);
    padding: 0;
}

/* Statistics Tab Styling */
.statistics-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.statistics-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}

.statistics-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.date-range-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-range-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

.date-range-dropdown {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-range-dropdown:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.date-range-dropdown:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(94, 41, 234, 0.1);
}

[data-theme="light"] .date-range-dropdown {
    border-color: rgba(0, 0, 0, 0.1);
    background: var(--bg-secondary);
}

[data-theme="light"] .date-range-dropdown:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.03);
}

/* Statistics Cards - Compact and Theme-Aware */
.statistics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

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

[data-theme="light"] .stat-card {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    background: var(--bg-secondary);
}

[data-theme="light"] .stat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .stat-card::before {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.05);
}

.stat-card-content {
    flex: 1;
    min-width: 0;
}

.stat-card-title {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0 0 0.35rem 0;
    line-height: 1.2;
}

.stat-card-value {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-card-change {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    background: rgba(0, 200, 150, 0.1);
}

.stat-card-change.positive {
    color: var(--success);
    background: rgba(0, 200, 150, 0.1);
}

.stat-card-change.positive::before {
    content: '↑';
    font-size: 0.7rem;
}

.stat-card-change.negative {
    color: #FF6B7A;
    background: rgba(255, 107, 122, 0.1);
}

.stat-card-change.negative::before {
    content: '↓';
    font-size: 0.7rem;
}

[data-theme="light"] .stat-card-change.positive {
    background: rgba(0, 200, 150, 0.08);
}

[data-theme="light"] .stat-card-change.negative {
    background: rgba(255, 107, 122, 0.08);
}

/* Mobile Statistics Gradient Cards */
.stat-card-gradient {
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: pointer;
    /* Dark Mode - All Cards */
    background: #0e141c !important;
    /* box-shadow: 0 4px 12px rgb(47 47 47) !important; */
}

.stat-card-gradient:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.stat-card-gradient:active {
    transform: translateY(-2px);
}

/* Light Mode - Card 1 */
[data-theme="light"] .stat-card-gradient:nth-child(1),
[data-theme="light"] .stat-card-gradient:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Light Mode - Card 2 */
[data-theme="light"] .stat-card-gradient:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Light Mode - Card 3 */
[data-theme="light"] .stat-card-gradient:nth-child(3) {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Light Mode - Card 4 */
[data-theme="light"] .stat-card-gradient:nth-child(4) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .stat-card-gradient:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

[data-theme="light"] .chart-card {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.chart-period {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    cursor: pointer;
}

[data-theme="light"] .chart-period {
    border-color: rgba(0, 0, 0, 0.1);
    background: var(--bg-secondary);
}

.chart-placeholder {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

[data-theme="light"] .chart-placeholder {
    background: rgba(0, 0, 0, 0.02);
}

.chart-placeholder-content {
    text-align: center;
}

/* Top Links List */
.top-links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.top-link-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .top-link-item {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .top-link-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.top-link-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-link-rank {
    width: 32px;
    height: 32px;
    background: var(--accent-purple);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.top-link-url {
    color: var(--text-primary);
    font-weight: 500;
}

.top-link-clicks {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Click Stream Tab Styling */
.click-stream-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.click-stream-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}

.click-stream-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    font-size: 0.9rem;
    width: 300px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(94, 41, 234, 0.1);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

[data-theme="light"] .search-input {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .search-input:focus {
    border-color: var(--accent-purple);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--text-secondary);
    pointer-events: none;
}

/* Click Stream Table - Same styling as History table */
.click-stream-table-wrapper {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 1.5rem;
}

.click-stream-table {
    /* Inherits .table styles - same as History table */
    background: transparent;
    border-radius: 12px;
    overflow: visible;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0 0.45rem;
    transition: background 0.3s ease;
    box-shadow: none;
    width: 100%;
}

.click-stream-table thead {
    background: transparent;
    transition: background 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 10;
}

[data-theme="light"] .click-stream-table thead {
    background: transparent;
}

.click-stream-table thead th {
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 1.2rem 1rem;
    font-size: 0.9rem;
    text-align: left;
    white-space: nowrap;
    background: #130f21 !important;
    transition: background 0.3s ease;
    position: sticky;
    top: 0;
}

[data-theme="light"] .click-stream-table thead th {
    background: #5e29ea !important;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.click-stream-table tbody tr {
    display: table-row;
}

.click-stream-table tbody td {
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem;
    vertical-align: middle;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    border-radius: 0;
    height: 60px !important;
}

.click-stream-table tbody tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.click-stream-table tbody tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

[data-theme="light"] .click-stream-table tbody td {
    background: var(--bg-secondary);
}

.click-stream-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

[data-theme="light"] .click-stream-table tbody tr:hover td {
    background: rgba(0, 0, 0, 0.03);
}

.click-date-time {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-left: 1.5rem;
}

.click-date {
    color: var(--text-primary);
    font-weight: 500;
}

.click-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.short-code-badge {
    background: var(--accent-purple);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.original-url-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.url-text {
    color: var(--text-primary);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.url-text:hover {
    opacity: 0.8;
    /* text-decoration: underline; */
}

.location-cell,
.device-cell,
.browser-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.location-cell i,
.device-cell i,
.browser-cell i {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.location-cell span[data-bs-toggle="tooltip"] {
    cursor: help;
    transition: opacity 0.2s ease;
}

.location-cell span[data-bs-toggle="tooltip"]:hover {
    opacity: 0.8;
}

/* Click Stream Pagination */
.click-stream-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pagination-controls {
    display: none; /* Hidden by default, shown via JS when entries > 10 */
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

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

[data-theme="light"] .pagination-btn {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .pagination-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.2);
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-number {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-number:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.page-number.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
}

[data-theme="light"] .page-number {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .page-number:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.2);
}

.page-ellipsis {
    color: var(--text-secondary);
    padding: 0 0.5rem;
}

/* Mobile Load More Button */
.load-more-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.load-more-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: left 0.5s ease;
    z-index: 0;
}

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

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94, 41, 234, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn .load-more-text,
.load-more-btn .load-more-icon {
    position: relative;
    z-index: 1;
}

.load-more-btn .load-more-icon.fa-spin {
    animation: fa-spin 1s infinite linear;
}

[data-theme="light"] .load-more-btn {
    background: linear-gradient(135deg, #5e29ea 0%, #6029EB 100%);
}

[data-theme="light"] .load-more-btn:hover {
    box-shadow: 0 6px 20px rgba(94, 41, 234, 0.35);
}

/* Settings Tab Styling */
.settings-header-section {
    margin-bottom: 2rem;
}

.settings-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-section {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

[data-theme="light"] .settings-section {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.settings-section-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-section-title i {
    color: var(--accent-purple);
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.setting-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-option:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

[data-theme="light"] .setting-option {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.setting-info {
    flex: 1;
}

.setting-label {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    display: block;
}

.setting-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.setting-input {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: 200px;
    transition: all 0.3s ease;
}

.setting-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(94, 41, 234, 0.1);
}

[data-theme="light"] .setting-input {
    border-color: rgba(0, 0, 0, 0.1);
    background: var(--bg-secondary);
}

[data-theme="light"] .setting-input:focus {
    border-color: var(--accent-purple);
}

.setting-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-input-suffix {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-purple);
}

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

[data-theme="light"] .toggle-slider {
    background-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .toggle-slider:before {
    background-color: white;
}

/* Settings Action Buttons */
.setting-action-btn {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .setting-action-btn {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .setting-action-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.2);
}

.settings-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-save-settings,
.btn-reset-settings {
    background: var(--accent-purple);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-save-settings:hover {
    background: #4d1fc7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 41, 234, 0.3);
}

.btn-reset-settings {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-reset-settings:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .btn-reset-settings {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-reset-settings:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.2);
}

@media (max-width: 480px) {
    .auth-left {
        padding: 1.5rem 1rem;
        padding-top: 1.25rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-subtitle {
        font-size: 0.85rem;
    }

    .auth-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }

    .auth-input-icon .auth-input {
        padding-left: 2.25rem;
    }

    .btn-auth-primary,
    .btn-google {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .form-check-label {
        font-size: 0.8rem;
    }
}

/* ============================================
   Bulk Edit Styles
   ============================================ */

/* Bulk Edit Button */
.bulk-edit-btn.active {
    background: rgba(94, 41, 234, 0.2);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

/* Bulk Action Bar */
.bulk-action-bar {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

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

.bulk-action-bar.has-selection {
    border-color: var(--accent-purple);
    box-shadow: 0 4px 12px rgba(94, 41, 234, 0.2);
}

.bulk-action-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.bulk-selected-count {
    color: var(--accent-purple);
    font-weight: 700;
}

.bulk-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bulk-action-btn {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bulk-action-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

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

.bulk-activate-btn {
    color: var(--success);
    border-color: rgba(0, 200, 150, 0.3);
}

.bulk-activate-btn:hover:not(:disabled) {
    background: rgba(0, 200, 150, 0.1);
    border-color: var(--success);
}

.bulk-deactivate-btn {
    color: var(--warning);
    border-color: rgba(255, 165, 0, 0.3);
}

.bulk-deactivate-btn:hover:not(:disabled) {
    background: rgba(255, 165, 0, 0.1);
    border-color: var(--warning);
}

.bulk-delete-btn {
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
}

.bulk-delete-btn:hover:not(:disabled) {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
}

.bulk-cancel-btn {
    color: var(--text-secondary);
}

.bulk-cancel-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

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

[data-theme="light"] .bulk-action-bar {
    background: var(--bg-secondary);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .bulk-action-bar.has-selection {
    border-color: var(--accent-purple);
    box-shadow: 0 2px 8px rgba(94, 41, 234, 0.15);
}

[data-theme="light"] .bulk-action-btn {
    background: var(--bg-primary);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .bulk-action-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Checkbox Column */
.checkbox-header {
    width: 50px;
    text-align: center;
    padding: 1rem 0.5rem !important;
}

.checkbox-cell {
    text-align: center;
    padding: 0.5rem !important;
    vertical-align: middle;
}

.bulk-checkbox,
.row-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-purple);
}

.bulk-checkbox:checked,
.row-checkbox:checked {
    accent-color: var(--accent-purple);
}

/* Mobile Bulk Edit */
.mobile-link-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-purple);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .bulk-action-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }

    .bulk-action-info {
        justify-content: center;
    }

    .bulk-action-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .bulk-action-btn {
        flex: 1;
        min-width: calc(50% - 0.375rem);
        justify-content: center;
    }
}

/* Table Empty State */
.table-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
}

.table-empty-state.show {
    display: block;
}

.table-empty-state h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.table-empty-state p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

[data-theme="light"] .table-empty-state h3 {
    color: var(--text-primary);
}

[data-theme="light"] .table-empty-state p {
    color: var(--text-secondary);
}

/* Bulk Action Confirm Modal */
.bulk-confirm-modal .modal-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-primary);
}

[data-theme="light"] .bulk-confirm-modal .modal-content {
    background: var(--bg-secondary);
    border-color: rgba(0, 0, 0, 0.1);
}

.bulk-confirm-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

[data-theme="light"] .bulk-confirm-modal .modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.bulk-confirm-modal .modal-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bulk-confirm-modal .modal-title i {
    color: var(--warning);
    font-size: 1.5rem;
}

.bulk-confirm-modal .modal-body {
    padding: 1.5rem;
    color: var(--text-primary);
}

.bulk-confirm-modal .modal-body p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.bulk-confirm-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

[data-theme="light"] .bulk-confirm-modal .modal-footer {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.bulk-confirm-modal .btn-cancel {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bulk-confirm-modal .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .bulk-confirm-modal .btn-cancel {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .bulk-confirm-modal .btn-cancel:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

.bulk-confirm-modal .btn-confirm {
    background: linear-gradient(135deg, #5E29EA 0%, #3B82F6 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bulk-confirm-modal .btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 41, 234, 0.3);
}

.bulk-confirm-modal .btn-confirm.delete-action {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.bulk-confirm-modal .btn-confirm.delete-action:hover {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Mobile Modal - Bottom Up Animation */
@media (max-width: 768px) {
    .bulk-confirm-modal .modal-dialog {
        margin: 0;
        max-width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }
    
    .bulk-confirm-modal.show .modal-dialog,
    .bulk-confirm-modal.showing .modal-dialog {
        transform: translateY(0);
    }
    
    .bulk-confirm-modal .modal-dialog-centered {
        align-items: flex-end;
        min-height: auto;
    }
    
    .bulk-confirm-modal .modal-content {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        margin: 0;
    }
    
    .bulk-confirm-modal .modal-header {
        padding: 2rem 1.5rem 1rem;
    }
    
    .bulk-confirm-modal .modal-body {
        padding: 1.5rem 1.5rem;
    }
    
    .bulk-confirm-modal .modal-footer {
        padding: 1rem 1.5rem 1.5rem;
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .bulk-confirm-modal .btn-cancel {
        flex: 0 0 auto;
        min-width: 100px;
        padding: 0.85rem 1.25rem;
    }
    
    .bulk-confirm-modal .btn-confirm {
        flex: 1;
        padding: 0.85rem 1.25rem;
        justify-content: center;
    }
}

