:root {
    --bg-color: #050505;
    --card-bg: #121212;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #ffffff;
    --primary-hover: #e2e8f0;
    --primary-text: #050505;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --border-color: #262626;
    --sidebar-bg: #0a0a0a;
    --radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    
    --day-other-month: #0a0a0a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
body {
    background-color: var(--bg-color);
    color: var(--text-main);
}
body.app-layout, html {
    height: 100%;
    overflow: hidden !important;
}
body.app-layout {
    position: fixed;
    width: 100%;
}

/* Logos */
.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.login-card .logo-img {
    height: 60px;
    margin: 0 auto 20px;
}

/* Login */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg-color);
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.login-card {
    background: var(--card-bg);
    padding: 44px 36px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    margin: auto;
    z-index: 2;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
}

.login-card .logo-img {
    max-height: 75px;
    height: auto;
    width: auto;
    margin: 0 auto 16px auto;
    display: block;
    object-fit: contain;
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h2 {
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

.login-card .form-group {
    margin-bottom: 18px;
    text-align: left;
}

.login-card input[type="text"],
.login-card input[type="password"],
.login-card input[type="email"] {
    font-size: 15px;
    padding: 12px 14px;
    border-radius: 8px;
}

.login-card .btn-primary {
    height: 46px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.forgot-pass-wrapper {
    text-align: center;
    margin-top: 16px;
}

.forgot-pass-wrapper a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.forgot-pass-wrapper a:hover {
    color: #ffffff;
}

.login-body .app-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;
    border-top: none;
    text-align: center;
    padding: 0;
    margin: 0;
    pointer-events: auto;
    z-index: 1;
}

@media (max-width: 600px) {
    .login-body {
        padding: 32px 20px 24px 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        min-height: 100vh;
        min-height: 100dvh;
        box-sizing: border-box;
    }

    .login-card {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        max-width: 100%;
        margin: auto 0;
        overflow: visible;
    }

    .login-card::before {
        display: none;
    }

    .login-card .logo-img {
        max-height: 64px;
        margin: 0 auto 16px auto;
    }

    .login-header {
        margin-bottom: 28px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .login-header p {
        font-size: 14px;
    }

    .login-card .form-group {
        margin-bottom: 20px;
    }

    .login-card input[type="text"],
    .login-card input[type="password"],
    .login-card input[type="email"] {
        font-size: 16px !important; /* Prevents auto-zoom on mobile Safari */
        padding: 14px 16px;
        border-radius: 12px;
        background: #1a1a1a;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .login-card .btn-primary {
        height: 50px;
        font-size: 16px;
        font-weight: 700;
        border-radius: 12px;
        margin-top: 24px;
    }

    .forgot-pass-wrapper {
        margin-top: 20px;
    }

    .forgot-pass-wrapper a {
        font-size: 14px;
        color: var(--text-muted);
    }

    .login-body .app-footer {
        position: relative;
        bottom: auto;
        margin-top: 32px;
        padding-bottom: 12px;
    }
}

.logo-img {
    height: 45px;
    margin-bottom: 5px;
}
.subtitle {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 35px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    background: #1a1a1a;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    color-scheme: dark;
}

select option {
    background-color: #1a1a1a;
    color: var(--text-main);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--text-main);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

input[readonly], textarea[readonly] {
    background-color: #121212;
    cursor: not-allowed;
    border-color: var(--border-color);
    opacity: 0.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    height: 40px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-text);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background-color: #1e1e24;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #2b2b32;
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 6px;
    gap: 6px;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: var(--danger-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: #262626;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 20px;
}

.btn-icon:hover {
    background-color: #262626;
}

.btn-block {
    width: 100%;
    padding: 14px;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* App Layout */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.user-profile-mini {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333, #111);
    border: 1px solid #444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333, #111);
    border: 1px solid #444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 32px;
    margin: 0 auto 15px;
}

.user-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.role-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin {
    background-color: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.role-user {
    background-color: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.sidebar-nav {
    padding: 24px 12px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.nav-item i {
    font-size: 20px;
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.nav-item.text-danger {
    color: var(--danger);
    margin-top: auto;
}

.nav-item.text-danger:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-header {
    min-height: 64px;
    height: auto;
    padding: 12px 32px;
    background-color: var(--sidebar-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.top-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.calendar-controls h2 {
    font-size: 20px;
    font-weight: 600;
    min-width: 180px;
    text-align: center;
    text-transform: capitalize;
}

/* Calendar Grid */
.calendar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 32px;
    overflow: hidden;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 10px;
}

.calendar-days-header div {
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 10px;
    min-height: 0;
}

.calendar-cell {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 6px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.calendar-cell:hover {
    box-shadow: var(--shadow-md);
    border-color: #525252;
}

.calendar-cell.other-month {
    background-color: var(--day-other-month);
    opacity: 0.5;
}

.calendar-cell.today {
    border: 2px solid var(--primary);
}

.date-number {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    position: absolute;
    top: 6px;
    right: 6px;
    line-height: 1;
}

.today .date-number {
    background: var(--primary);
    color: var(--primary-text);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.events-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 2px;
}

.events-container::-webkit-scrollbar {
    width: 4px;
}
.events-container::-webkit-scrollbar-track {
    background: transparent;
}
.events-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.event-badge {
    font-size: 11px;
    padding: 2.5px 6px;
    border-radius: 4px;
    color: white; /* Keep white for readability over colors */
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.1s, opacity 0.2s;
    border: 1px solid rgba(0,0,0,0.15);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.event-badge:hover {
    filter: brightness(1.15);
    opacity: 0.9;
}

/* Modals */
.modal {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: visibility 0.22s ease, opacity 0.22s ease, background-color 0.22s ease, backdrop-filter 0.22s ease, -webkit-backdrop-filter 0.22s ease;
}

.modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--card-bg);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    opacity: 0;
    transform: scale(0.96) translateY(12px);
    transition: opacity 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10001;
    position: relative;
}

.modal.active .modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.modal-sm {
    max-width: 620px;
}

.modal-md {
    max-width: 760px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--danger);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-footer .btn-danger {
    margin-right: auto;
}

/* Color Picker */
.color-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-picker input[type="radio"] {
    display: none;
}

.color-picker label {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    border: 2px solid transparent;
    transition: transform 0.2s;
    margin: 0;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
}

.color-picker input[type="radio"]:checked + label {
    transform: scale(1.2);
    border-color: var(--text-main);
}

/* User Selection List in Event */
.user-select-list {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    background: #1a1a1a;
}

.user-select-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.user-select-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.user-select-item:last-child {
    border-bottom: none;
}

.user-select-item label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
}

/* Tables */
.content-wrapper {
    padding: 32px;
    flex: 1;
    overflow-y: auto;
}

.main-content.scrollable-y {
    overflow-y: auto !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.main-content.scrollable-y::-webkit-scrollbar {
    display: none;
}
.main-content.scrollable-y .content-wrapper {
    overflow-y: visible !important;
}

.table-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: #1a1a1a;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* User detail card */
.user-detail-card {
    text-align: center;
}

.contact-info {
    text-align: left;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: var(--text-muted);
    font-size: 18px;
}

.hidden {
    display: none !important;
}

/* Agenda View */
.agenda-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.agenda-item:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}
.agenda-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 15px;
}
.agenda-item-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-main);
    word-break: break-word;
}
.agenda-item-date {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
    text-align: right;
}
.agenda-item-desc {
    word-break: break-word;
    overflow-wrap: break-word;
}
.agenda-duration {
    font-size: 11px;
    opacity: 0.7;
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}
.agenda-item-users {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.agenda-user-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page transition – prevents sidebar blink */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.18s;
}
::view-transition-old(root) {
    animation-name: page-fade-out;
}
::view-transition-new(root) {
    animation-name: page-fade-in;
}
@keyframes page-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes page-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Fallback: body fade for browsers without View Transitions */
body {
    animation: bodyFadeIn 0.15s ease-out;
}
@keyframes bodyFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Mobile Responsiveness */
.mobile-day { display: none; }

.nav-item-more {
    display: none !important;
}
.mobile-more-backdrop,
.mobile-more-sheet {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-day { display: none; }
    .mobile-day { display: inline; }
    
    .app-container {
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    .sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        width: 100% !important;
        max-width: 100vw !important;
        border-right: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        z-index: 1000 !important;
        background: #0d0d0d !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .sidebar-header,
    .user-profile-mini,
    .sidebar > a:not(.nav-item),
    .sidebar .app-footer {
        display: none !important;
    }
    .sidebar-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        height: 56px !important;
        padding: 0 4px !important;
        margin: 0 !important;
        background: transparent !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        box-sizing: border-box !important;
    }
    .sidebar-nav::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    .nav-item {
        flex: 1 1 0 !important;
        min-width: 48px !important;
        max-width: 90px !important;
        height: 52px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        padding: 4px 2px !important;
        margin: 0 !important;
        font-size: 9.5px !important;
        line-height: 1.1 !important;
        text-align: center !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
        color: var(--text-muted, #9ca3af) !important;
        text-decoration: none !important;
        position: relative !important;
        box-sizing: border-box !important;
        -webkit-tap-highlight-color: transparent !important;
        transition: color 0.15s ease, background-color 0.15s ease !important;
    }
    .nav-item i {
        font-size: 18px !important;
        line-height: 1 !important;
        margin-bottom: 1px !important;
        display: block !important;
    }
    .nav-item span:not(.badge-pending-xp) {
        font-size: 9.5px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        display: block !important;
        letter-spacing: -0.2px !important;
    }
    .nav-item:hover,
    .nav-item:active {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.04) !important;
    }
    .nav-item.active {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }
    .nav-item.active i {
        color: var(--primary, #f59e0b) !important;
    }
    .nav-item.text-danger {
        color: #f87171 !important;
        margin-top: 0 !important;
    }
    .nav-item.text-danger:hover,
    .nav-item.text-danger:active {
        color: #ef4444 !important;
        background: rgba(239, 68, 68, 0.1) !important;
    }
    .nav-item.text-danger i {
        color: #ef4444 !important;
    }
    .nav-item-secondary {
        display: flex !important;
    }
    .nav-item-more,
    .mobile-more-backdrop,
    .mobile-more-sheet {
        display: none !important;
    }
    .main-content {
        height: 100%;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden;
        box-sizing: border-box !important;
        padding-bottom: calc(60px + env(safe-area-inset-bottom)) !important;
    }
    .top-header {
        padding: 12px 15px;
        flex-direction: column;
        height: auto;
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .calendar-controls {
        width: 100%;
        justify-content: space-between;
    }
    .calendar-controls h2 {
        min-width: auto;
        font-size: 16px;
    }
    .header-actions {
        width: 100%;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center !important;
        gap: 8px !important;
    }
    .filter-controls {
        display: flex;
        flex: 1;
        gap: 6px;
    }
    .filter-btn {
        flex: 1;
        justify-content: center;
        font-size: 12px !important;
        padding: 6px 8px !important;
        height: 38px !important;
    }
    .view-controls {
        display: flex;
        flex: 1;
    }
    .view-controls .btn {
        flex: 1;
        font-size: 12px !important;
        padding: 6px 8px !important;
        height: 38px !important;
        justify-content: center;
    }
    .create-controls {
        display: none !important;
    }
    .calendar-wrapper {
        padding: 10px;
    }
    .calendar-days-header div {
        font-size: 10px;
    }
    .calendar-grid {
        gap: 4px;
    }
    .calendar-cell {
        padding: 4px;
        min-height: 0 !important;
        height: 100%;
        border-radius: 6px;
        display: flex;
        flex-direction: column;
        position: relative;
    }
    .date-number {
        font-size: 12px;
        position: absolute;
        top: 4px;
        right: 4px;
    }
    .today .date-number {
        width: 20px;
        height: 20px;
    }
    .events-container {
        flex: 1;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 3px;
        justify-content: center;
        align-content: flex-start;
        padding-top: 4px;
        overflow: hidden;
        margin-top: 20px;
    }
    .event-badge {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        padding: 0;
        font-size: 0;
        color: transparent;
        text-indent: -9999px;
        border: none;
        box-shadow: none;
        pointer-events: none;
        flex-shrink: 0;
    }
    .events-container::-webkit-scrollbar {
        display: none;
    }
    .modal-content {
        margin: 12px auto !important;
        width: calc(100% - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100dvh - 24px) !important;
        box-sizing: border-box !important;
    }
    .modal-header {
        padding: 14px 16px !important;
    }
    .modal-body {
        padding: 16px 16px !important;
    }
    .modal-footer {
        padding: 12px 16px !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }
    .agenda-wrapper {
        padding: 15px !important;
    }
    .content-wrapper {
        padding: 15px;
    }
    .agenda-item-header {
        flex-direction: column;
        gap: 8px;
    }
    .agenda-item-date {
        justify-content: flex-start;
        text-align: left;
        font-size: 13px;
    }
    .agenda-item {
        padding: 15px;
    }
    .table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 8px !important;
    }
    .table {
        min-width: 100% !important;
    }
    .table th, .table td {
        padding: 10px 8px !important;
        font-size: 12px !important;
    }
    .table th {
        font-size: 11px !important;
        padding: 8px 8px !important;
    }
    .table td .btn-outline {
        padding: 5px 8px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .content-wrapper {
        grid-template-columns: 1fr !important;
        padding: 15px !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .modal-sm {
        max-width: 95vw;
    }
    .profile-card {
        padding: 16px !important;
    }
    .profile-card h3 {
        font-size: 16px;
        margin-bottom: 14px !important;
    }
    .profile-card .table-container {
        border: none;
        box-shadow: none;
    }
    /* Collapse form grid rows (Od/Do dates) and details layouts on mobile */
    .form-grid-2col,
    .event-view-grid,
    #edit-two-col-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    #user-event-view-modal .modal-content {
        max-height: 92vh;
    }
    #user-event-view-modal .uv-modal-header {
        padding: 18px 18px 12px 18px !important;
    }
    #user-event-view-modal .uv-modal-title {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }
    #user-event-view-modal .uv-badges-container {
        gap: 5px !important;
        margin-top: 3px !important;
    }
    #user-event-view-modal .uv-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
        letter-spacing: 0.2px !important;
    }
    #user-event-view-modal .uv-date-bar,
    #user-event-view-modal #uv-location-bar {
        margin-left: 18px !important;
        margin-right: 18px !important;
        padding: 10px 14px !important;
    }
    #user-event-view-modal .event-view-grid {
        padding: 0 18px 18px 18px !important;
    }
}

/* Event detail modal badges */
.uv-badges-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.uv-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    line-height: 1.3;
}

/* Footer */
.app-footer {
  margin-top: auto;
  padding: 1.5rem 1rem 1rem;
  text-align: center;
}

.app-footer a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s, transform 0.3s;
}

.app-footer a:hover {
  color: var(--text-main);
  transform: translateY(-1px);
}

.app-footer img {
  width: 100px;
  opacity: 0.55;
  transition: opacity 0.3s;
  filter: grayscale(1) brightness(200%);
}

.app-footer a:hover img {
  opacity: 1;
}

/* Custom Scrollbars */
.modal-body::-webkit-scrollbar,
.user-select-list::-webkit-scrollbar,
.content-wrapper::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.modal-body::-webkit-scrollbar-track,
.user-select-list::-webkit-scrollbar-track,
.content-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.modal-body::-webkit-scrollbar-thumb,
.user-select-list::-webkit-scrollbar-thumb,
.content-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    transition: background 0.2s;
}
.modal-body::-webkit-scrollbar-thumb:hover,
.user-select-list::-webkit-scrollbar-thumb:hover,
.content-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body, .user-select-list, .content-wrapper {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* Hide elements on mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    #pe-title-color-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* Mobile FAB Button */
.mobile-fab-container {
    display: none;
}

@media (max-width: 768px) {
    .mobile-fab-container {
        display: block;
        position: fixed;
        bottom: calc(80px + env(safe-area-inset-bottom));
        right: 20px;
        z-index: 1001;
    }
    .fab-btn {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--text-main);
        color: var(--bg-color);
        border: none;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.2s ease, background-color 0.2s;
    }
    .fab-btn:active {
        transform: scale(0.95);
    }
    .fab-btn.active {
        transform: rotate(45deg);
        background: var(--danger);
        color: #fff;
    }
    .fab-menu {
        display: flex;
        flex-direction: column;
        gap: 10px;
        position: absolute;
        bottom: 70px;
        right: 0;
        opacity: 0;
        pointer-events: none;
        transform: translateY(20px);
        transition: all 0.2s ease;
    }
    .fab-menu.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .fab-menu-item {
        white-space: nowrap;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--text-main);
        padding: 10px 16px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: var(--shadow-md);
        cursor: pointer;
        transition: background 0.2s, transform 0.2s;
    }
    .fab-menu-item:active {
        transform: scale(0.97);
    }
}

/* Hide navigation bar and FAB when virtual keyboard is open (height is reduced) */
@media (max-width: 768px) and (max-height: 500px) {
    .sidebar {
        display: none !important;
    }
    .main-content {
        padding-bottom: 0 !important;
    }
    .mobile-fab-container {
        display: none !important;
    }
}

/* Utility to disable backdrop transitions when switching between modals */
.modal.no-backdrop-transition {
    transition: none !important;
}

/* REEK Theme Styling overrides */
body.reek {
    --primary: #b3e60b;         /* REEK Lime Green */
    --primary-hover: #c4f71a;   /* Slightly lighter green */
    --primary-text: #050505;    /* Dark contrast text for buttons */
}
body.reek.login-body .login-card::before {
    background: linear-gradient(90deg, #b3e60b, #c4f71a);
}

/* REEK logo — wide SVG, needs more width */
body.reek .sidebar-header .logo-img,
body.reek .login-card .logo-img {
    height: auto;
    max-height: 38px;
    max-width: 160px;
    width: auto;
}

/* MěKS Strakonice Theme Styling */
body.meks {
    --primary: #3b82f6;         /* Modern Cultural Blue */
    --primary-hover: #60a5fa;
    --primary-text: #ffffff;
}
body.meks.login-body .login-card::before {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}
body.meks .sidebar-header .logo-img,
body.meks .login-card .logo-img {
    height: auto;
    max-height: 48px;
    max-width: 220px;
    width: auto;
}

/* Responsive event checklist container styling */
.checklist-section {
    display: none;
    padding: 0 28px 28px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: -8px;
    overflow-y: auto;
    max-height: 40vh;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .checklist-section {
        padding: 0 20px 20px 20px;
        max-height: 50vh;
    }
}

/* Holiday highlights - more prominent and modern style */
.calendar-cell.is-holiday {
    background-color: rgba(239, 68, 68, 0.07) !important;
    border-top: 3px solid rgba(239, 68, 68, 0.65) !important;
}
.calendar-cell.is-holiday:hover {
    background-color: rgba(239, 68, 68, 0.12) !important;
}
.date-number.holiday-date {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700 !important;
}
.today .date-number.holiday-date {
    background: #ef4444 !important;
    color: #fff !important;
    border: none !important;
}

/* Leaderboard Modal Premium Styling */
#leaderboard-modal .modal-content {
    background: #0f0f0f !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8) !important;
}

#leaderboard-modal .modal-body {
    max-height: 75vh !important;
    overflow-y: auto !important;
    scrollbar-width: none !important; /* Hide scrollbar for Firefox */
}
#leaderboard-modal .modal-body::-webkit-scrollbar {
    display: none !important; /* Hide scrollbar for Chrome/Safari */
}

.leaderboard-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.leaderboard-item:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.leaderboard-item.is-me {
    background: rgba(99, 102, 241, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    box-shadow: inset 0 0 12px rgba(99, 102, 241, 0.05);
}

.leaderboard-item.rank-1 {
    border-color: rgba(251, 191, 36, 0.25) !important;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.05), rgba(0, 0, 0, 0)) !important;
}

.leaderboard-item.rank-2 {
    border-color: rgba(148, 163, 184, 0.25) !important;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.05), rgba(0, 0, 0, 0)) !important;
}

.leaderboard-item.rank-3 {
    border-color: rgba(180, 83, 9, 0.25) !important;
    background: linear-gradient(90deg, rgba(180, 83, 9, 0.05), rgba(0, 0, 0, 0)) !important;
}

.leaderboard-rank {
    width: 28px;
    text-align: center;
    font-weight: 800;
    font-size: 14px;
    color: var(--text-muted);
}

.leaderboard-rank.rank-medal {
    font-size: 20px;
}

.leaderboard-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.leaderboard-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #c4b5fd;
    border: 2px solid rgba(139, 92, 246, 0.15);
}

.leaderboard-name {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 40px;
    flex-grow: 0;
    flex-shrink: 1;
}

.leaderboard-stats {
    text-align: right;
    flex-shrink: 0;
}

.leaderboard-level-badge {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-weight: 700;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}

.leaderboard-xp-val {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 3px;
}

/* User Info Modal Mobile Responsive Optimizations */
@media (max-width: 480px) {
    #user-info-modal .modal-content {
        max-width: 90% !important;
        margin: 20px auto !important;
    }
    #user-info-modal .modal-header {
        padding: 12px 18px !important;
    }
    #user-info-modal .modal-body {
        padding: 16px 18px !important;
    }
    #user-info-modal .avatar-large {
        width: 64px !important;
        height: 64px !important;
        font-size: 26px !important;
        margin-bottom: 10px !important;
    }
    #user-info-modal #ui-fullname {
        font-size: 16px !important;
    }
    #user-info-modal #ui-level-badge-container {
        margin-bottom: 14px !important;
    }
    #user-info-modal .contact-info {
        padding: 12px 14px !important;
        gap: 10px !important;
    }
    #user-info-modal .contact-item {
        font-size: 13px !important;
    }
}

/* Today & Holiday Combined Border Styling */
.calendar-cell.today.is-holiday {
    border: 2px solid #ef4444 !important;
}

/* Mobile visibility helpers */
.show-mobile-only {
    display: none !important;
}
.show-mobile-only-inline {
    display: none !important;
}

/* XP Summary Badge */
.xp-summary-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .show-mobile-only {
        display: block !important;
    }
    .show-mobile-only-inline {
        display: inline !important;
    }
}

@media (max-width: 480px) {
    #btn-show-leaderboard {
        padding: 6px 10px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }
    .xp-summary-badge {
        padding: 6px 10px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }
    #leaderboard-modal .modal-content {
        padding: 15px !important;
    }
    .leaderboard-item {
        padding: 8px 10px !important;
        gap: 10px !important;
    }
    .leaderboard-rank {
        width: 20px !important;
        font-size: 13px !important;
    }
    .leaderboard-rank.rank-medal {
        font-size: 16px !important;
    }
    .leaderboard-user-info {
        gap: 8px !important;
    }
    .leaderboard-avatar,
    .leaderboard-avatar-placeholder {
        width: 32px !important;
        height: 32px !important;
    }
    .leaderboard-avatar-placeholder {
        font-size: 12px !important;
    }
    .leaderboard-name {
        font-size: 13px !important;
    }
    .leaderboard-level-badge {
        padding: 1px 6px !important;
        font-size: 10px !important;
    }
    .leaderboard-xp-val {
        font-size: 10px !important;
        margin-top: 1px !important;
    }
}

.leaderboard-name-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.leaderboard-me-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    background: #818cf8;
    color: #ffffff;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

body.lightbox-open .app-container {
    visibility: hidden !important;
}

/* Badge Pending XP */
.badge-pending-xp {
    display: none;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    margin-left: auto;
    justify-content: center;
    align-items: center;
}

/* Fix table container responsive overflow stretch bug */
.table-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.main-content.scrollable-y {
    overflow-x: hidden !important;
}

/* Calendar month swipe transitions */
@keyframes slideLeftOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}
@keyframes slideLeftIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideRightOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
@keyframes slideRightIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-left-out {
    animation: slideLeftOut 0.12s forwards ease-in-out;
}
.slide-left-in {
    animation: slideLeftIn 0.12s forwards ease-in-out;
}
.slide-right-out {
    animation: slideRightOut 0.12s forwards ease-in-out;
}
.slide-right-in {
    animation: slideRightIn 0.12s forwards ease-in-out;
}

/* Desktop header controls */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}
.view-controls {
    display: flex;
    align-items: center;
    height: 40px;
}
.btn-view-grid {
    border: 1px solid var(--border-color);
    border-right: none;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background: var(--primary);
    color: var(--primary-text);
    height: 40px;
    padding: 0 14px;
    font-weight: 600;
}
.btn-view-agenda {
    border: 1px solid var(--border-color);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background: transparent;
    color: var(--text-main);
    height: 40px;
    padding: 0 14px;
    font-weight: 600;
}
.create-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}
.btn-private-event {
    background: rgba(139,92,246,0.15);
    color: #a78bfa;
    border: 1px solid rgba(139,92,246,0.35);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    height: 40px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-private-event:hover {
    background: rgba(139,92,246,0.25);
}

/* Standard App Page Top Header (Dlužníček, Správa uživatelů, Můj profil, Herní Zóna) */
.app-top-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 24px !important;
    min-height: 64px !important;
    background-color: var(--sidebar-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.app-top-header h2 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.app-top-header .header-actions {
    margin: 0 !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 32px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 16px 16px 120px 16px !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .app-top-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        min-height: auto !important;
        padding: 14px 16px !important;
    }
    .app-top-header h2 {
        font-size: 18px !important;
        font-weight: 700 !important;
        text-align: left !important;
        margin: 0 !important;
        white-space: normal !important;
    }
    .app-top-header .header-actions {
        display: flex !important;
        width: 100% !important;
        gap: 8px !important;
        justify-content: flex-start !important;
    }
    .app-top-header .header-actions .btn,
    .app-top-header .header-actions button,
    .app-top-header .header-actions a {
        flex: 1 1 auto !important;
        height: 38px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .top-header:not(.app-top-header) {
        padding: 10px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        background: var(--sidebar-bg);
        border-bottom: 1px solid var(--border-color);
        min-height: auto !important;
    }
    .calendar-controls {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
    .calendar-controls h2 {
        font-size: 17px !important;
        font-weight: 700 !important;
        min-width: 0 !important;
        margin: 0 !important;
        text-align: center !important;
    }
    .header-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .filter-controls {
        display: flex !important;
        gap: 6px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    .filter-btn {
        flex: 1 !important;
        justify-content: center !important;
        padding: 0 6px !important;
        font-size: 11px !important;
        height: 34px !important;
    }
    .view-controls {
        display: flex !important;
        height: 34px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    .view-controls .btn {
        flex: 1 !important;
        justify-content: center !important;
        height: 34px !important;
        font-size: 11px !important;
        padding: 0 6px !important;
    }
    .create-controls {
        display: flex !important;
        gap: 6px !important;
        width: 100% !important;
    }
    .create-controls .btn {
        flex: 1 !important;
        justify-content: center !important;
        height: 36px !important;
        font-size: 12px !important;
        padding: 0 8px !important;
    }
    .calendar-wrapper {
        padding: 6px 4px 120px 4px !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .calendar-days-header {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
        margin-bottom: 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .calendar-days-header div {
        font-size: 11px !important;
        font-weight: 700 !important;
        text-align: center !important;
    }
    .calendar-grid {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(6, 1fr) !important;
        gap: 3px !important;
        flex: 1 !important;
        height: 100% !important;
        min-height: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .calendar-cell {
        padding: 4px 2px !important;
        border-radius: 8px !important;
        justify-content: space-between !important;
        min-width: 0 !important;
        width: 100% !important;
        height: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .date-number {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        text-align: center !important;
        width: auto !important;
        line-height: 1.2 !important;
        margin: 0 auto 2px auto !important;
    }
    .today .date-number,
    .holiday-date {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        border-radius: 50% !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    .nav-item {
        position: relative;
    }
    .nav-item .badge-pending-xp {
        position: absolute !important;
        top: 2px !important;
        right: calc(50% - 20px) !important;
        margin-left: 0 !important;
    }
    .app-container,
    .main-content,
    .main-content.scrollable-y {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        max-width: 100vw !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 0 !important;
    }
    .agenda-wrapper {
        padding: 16px 14px 120px 14px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex: 1 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    #agenda-list {
        gap: 12px !important;
        margin: 0 !important;
        width: 100% !important;
    }
}

.agenda-wrapper {
    padding: 24px 32px;
    overflow-y: auto;
    flex: 1;
}

#agenda-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hidden {
    display: none !important;
}

.holiday-date {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    border: 1px solid #ef4444 !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
}

/* Dlužníček & Settle Up Mobile Responsiveness & Polish */
.tx-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.tx-item.resolved {
    opacity: 0.55;
    background: rgba(255, 255, 255, 0.01);
}

.tx-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.tx-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--primary-text);
    font-weight: 700;
    font-size: 14px;
}

.tx-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tx-details {
    min-width: 0;
    flex: 1;
}

.tx-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-subinfo {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tx-right {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tx-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-action-tx {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

@media (max-width: 600px) {
    .tx-item {
        padding: 12px;
        gap: 10px;
    }
    .tx-right {
        gap: 8px;
    }
    .tx-amount {
        font-size: 14px !important;
    }
    .tx-title {
        font-size: 14px;
    }
    .tx-subinfo {
        font-size: 11px;
    }
    .user-balance-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    .user-balance-item .tx-right {
        width: 100%;
        justify-content: flex-end;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
        padding-top: 8px;
        margin-top: 4px;
    }
    .btn-text-desktop {
        display: none;
    }
}

@media (max-width: 480px) {
    .debts-card, .bank-card {
        padding: 16px !important;
        border-radius: 12px !important;
    }
    .balance-amount {
        font-size: 28px !important;
    }
    .balance-substats {
        gap: 10px !important;
        padding-top: 14px !important;
    }
    .substat-item {
        gap: 8px !important;
    }
    .substat-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 16px !important;
    }
    .substat-title {
        font-size: 10px !important;
    }
    .substat-value {
        font-size: 14px !important;
    }
}

/* Hide mobile bank share options on desktop */
@media (min-width: 769px) {
    #btn-open-bank-app, #bank-apps-container, #bank-share-container {
        display: none !important;
    }
}

/* Premium Profile & Toggle Switch Styling */
.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    width: 100%;
}

.profile-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (max-width: 991px) {
    .profile-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .profile-col {
        display: contents;
    }
    .card-personal-info { order: 1; }
    .card-preferences { order: 2; }
    .card-reminders { order: 3; }
    .card-google-sync { order: 4; }
    .card-session-status { order: 5; }
    .card-login-logs { order: 6; margin-top: 10px; }

    #header-login-logs {
        cursor: pointer;
    }
    
    .login-logs-collapsible-wrapper {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        opacity: 0;
        overflow: hidden;
    }

    .login-logs-collapsible-inner {
        min-height: 0;
    }

    .login-logs-collapsible-wrapper.open {
        grid-template-rows: 1fr;
        opacity: 1;
    }
}

@media (min-width: 992px) {
    .login-logs-collapsible-wrapper {
        display: block !important;
        grid-template-rows: none !important;
        opacity: 1 !important;
        overflow: visible !important;
    }
    .login-logs-toggle-btn {
        display: none !important;
    }
    #header-login-logs {
        cursor: default !important;
    }
}

.profile-section-card {
    background: #141416;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section-title i {
    font-size: 22px;
    color: var(--primary);
}

.setting-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.setting-toggle-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.setting-toggle-card.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.setting-info {
    flex: 1;
    min-width: 0;
}

.setting-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.setting-title i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    color: var(--text-muted);
}

.setting-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Modern iOS Style Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: .25s ease-in-out;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: .25s ease-in-out;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

input:checked + .toggle-slider {
    background-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background-color: #000000;
}

input:disabled + .toggle-slider {
    cursor: not-allowed;
    opacity: 0.5;
}

@media (max-width: 600px) {
    .profile-section-card {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    .setting-toggle-card {
        padding: 12px;
        gap: 12px;
    }
    .setting-title {
        font-size: 13px;
    }
    .setting-desc {
        font-size: 11px;
    }
}

/* Profile Calendar Sync & Data Card */
.sync-scope-group {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
    align-items: center;
    box-sizing: border-box;
    margin: 0 !important;
}
.sync-scope-btn {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid transparent;
    margin: 0 !important;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
    box-sizing: border-box;
    height: 28px;
}
.sync-scope-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}
.sync-scope-btn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.sync-primary-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.sync-primary-actions .btn {
    height: 38px;
    font-size: 13px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 8px;
}
.sync-btn-main {
    flex: 1 1 180px;
    font-weight: 600;
}
.sync-primary-actions .btn-icon-only {
    width: 38px;
    padding: 0;
    flex-shrink: 0;
}

.sync-qr-drawer {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.sync-qr-content {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.sync-url-input {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
    background: #141417 !important;
    border: 1px solid var(--border-color) !important;
    color: #cbd5e1 !important;
    border-radius: 6px;
    font-family: monospace;
    outline: none;
}
.sync-url-input:focus {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.sync-data-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 12px;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
}
.sync-data-label {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}
.sync-data-chips {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.sync-chip-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    box-sizing: border-box;
}
.sync-chip-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}
.sync-chip-btn:active {
    transform: translateY(0);
}

/* Import Preview Modal Styling */
#import-preview-modal .modal-content,
#export-preview-modal .modal-content {
    max-width: 680px;
    width: 95%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.import-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    margin-bottom: 12px;
}

.import-quick-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.import-quick-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
}
.import-quick-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: underline;
}

.import-privacy-banner {
    padding: 12px 14px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    margin-bottom: 14px;
}
.import-bulk-privacy-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.import-bulk-btn {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    user-select: none;
    line-height: 1.2;
}
.import-bulk-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}
.import-bulk-btn:active {
    transform: translateY(1px);
}
.import-bulk-btn.btn-bulk-public:hover {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.45);
    color: #93c5fd;
}
.import-bulk-btn.btn-bulk-private:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.45);
    color: #c4b5fd;
}

.import-events-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 46vh;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 12px;
}

.import-event-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}
.import-event-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
}
.import-event-card.selected {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.22);
}
.import-event-card.is-duplicate {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.02);
}

.import-event-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.import-event-info {
    flex: 1;
    min-width: 0;
}
.import-event-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.import-event-title {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    word-break: break-word;
}
.import-event-date {
    font-size: 12px;
    color: #93c5fd;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}
.import-event-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.import-event-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.import-duplicate-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 500;
}
.import-event-privacy-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
    user-select: none;
    outline: none;
    line-height: 1.2;
}
.import-event-privacy-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
}
.import-event-privacy-btn:active {
    transform: translateY(0);
}
.import-event-privacy-btn.private {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.4);
}
.import-event-privacy-btn.public {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.4);
}

.import-event-type-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
}
.import-event-type-badge.private {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.25);
}
.import-event-type-badge.public {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Event Detail Modal Badges */
.uv-badges-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.uv-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .uv-modal-header {
        padding: 18px 20px 10px 20px !important;
        gap: 8px !important;
    }
    .uv-modal-title {
        font-size: 18px !important;
    }
    .uv-badges-container {
        gap: 5px !important;
        margin-top: 2px;
    }
    .uv-badge {
        font-size: 10px !important;
        padding: 2.5px 7px !important;
        letter-spacing: 0.2px !important;
    }

    #import-preview-modal .modal-content,
    #export-preview-modal .modal-content {
        width: 100% !important;
        max-height: 94vh !important;
        margin: 0 !important;
        border-radius: 12px;
    }
    #import-preview-modal .modal-body,
    #export-preview-modal .modal-body {
        padding: 12px 14px !important;
    }
    .import-summary-bar {
        padding: 8px 10px;
        gap: 6px;
    }
    .import-event-card {
        padding: 10px 12px;
        gap: 10px;
    }
    .import-bulk-privacy-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 4px;
    }
}



