:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-base: #f3f4f6;
    --bg-surface: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --danger: #ef4444;
    --success: #10b981;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-dark {
    --bg-base: #111827;
    --bg-surface: #1f2937;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border: #374151;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
}

.theme-dark input[type="text"],
.theme-dark input[type="password"],
.theme-dark input[type="email"],
.theme-dark input[type="number"],
.theme-dark select,
.theme-dark textarea {
    background: #374151;
    color: #f9fafb;
    border-color: #4b5563;
}

.theme-dark .glass {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-dark .navbar {
    background: rgba(31, 41, 55, 0.8);
}

.theme-dark .table-responsive {
    background: #1f2937;
}

.theme-dark .login-container {
    background: #111827;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Layout Variables for app structures */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background-color: rgba(79, 70, 229, 0.1);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Ajustes específicos para Layout Topo (Navbar Horizontal) */
body:not(.layout-sidebar) .navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.75rem 2rem;
    gap: 1rem;
}

body:not(.layout-sidebar) .nav-user-inline {
    order: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
    border-top: none;
    margin-top: 0;
    justify-self: end;
    flex-direction: row !important;
}

body:not(.layout-sidebar) .nav-menu {
    order: 2;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    justify-self: center;
}

body:not(.layout-sidebar) .nav-mobile-wrapper {
    order: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    justify-self: start;
}

body:not(.layout-sidebar) .nav-header {
    order: 4;
}

body:not(.layout-sidebar) .nav-brand-top {
    margin: 0 !important;
    display: flex;
    justify-content: flex-start;
}

body:not(.layout-sidebar) .nav-user-inline .user-name-span {
    font-weight: 600;
    font-size: 0.9rem;
}

body:not(.layout-sidebar) .nav-user-inline .user-role-span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Sidebar Layout Overrides */
body.layout-sidebar {
    display: flex;
    min-height: 100vh;
}

.layout-sidebar .navbar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    background: var(--bg-surface);
    transition: width 0.3s ease;
    z-index: 50;
}

.layout-sidebar .main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.nav-header {
    display: none !important;
}

.layout-sidebar .nav-header {
    display: flex !important;
}

.layout-sidebar .nav-brand-top {
    display: none !important;
}


.layout-sidebar .nav-brand {
    margin-bottom: 2rem;
    width: 100%;
}

.layout-sidebar .nav-menu {
    flex-direction: column;
    width: 100%;
    flex: 1;
    gap: 0.5rem;
}

.layout-sidebar .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
}

.layout-sidebar .nav-user,
.layout-sidebar .nav-user-inline {
    margin-top: auto;
    width: 100%;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    box-sizing: border-box;
}

.layout-sidebar .user-info-mobile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    flex: 1;
}

.layout-sidebar .user-name-span {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
}

.layout-sidebar .user-role-span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Minimized Sidebar Layout Overrides */
.layout-sidebar.minimized .navbar {
    width: 80px;
    align-items: center;
    padding: 1.5rem 0.75rem;
}

.layout-sidebar.minimized .main-content {
    margin-left: 80px;
    width: calc(100% - 80px);
}

.layout-sidebar.minimized .nav-header {
    justify-content: center !important;
}

.layout-sidebar.minimized .nav-brand {
    display: none;
}

.layout-sidebar.minimized .nav-menu {
    align-items: center;
}

.layout-sidebar.minimized .nav-link {
    justify-content: center;
    padding: 0.75rem;
    width: auto;
}

.layout-sidebar.minimized .nav-link span {
    display: none;
}

.layout-sidebar.minimized .nav-link i {
    margin: 0 !important;
    font-size: 1.25rem;
}

.layout-sidebar.minimized .nav-user,
.layout-sidebar.minimized .nav-user-inline {
    align-items: center;
    justify-content: center;
}

.layout-sidebar.minimized .user-name-span,
.layout-sidebar.minimized .user-role-span,
.layout-sidebar.minimized .user-info-mobile-wrapper,
.layout-sidebar.minimized .btn-logout span {
    display: none;
}

.layout-sidebar.minimized .btn-logout {
    justify-content: center;
    padding: 0.75rem;
}

.layout-sidebar.minimized .btn-logout i {
    margin: 0 !important;
    font-size: 1.25rem;
}

.layout-sidebar .btn-logout {
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.layout-sidebar .btn-logout:hover {
    color: var(--danger);
}

.layout-sidebar .main-content {
    margin: 0 0 0 250px;
    padding: 2rem;
    flex: 1;
    max-width: 100%;
    width: calc(100% - 250px);
}

@media (max-width: 768px) {
    body.layout-sidebar {
        flex-direction: column;
    }

    .navbar {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 1rem !important;
        height: auto !important;
    }

    .layout-sidebar .navbar {
        width: 100% !important;
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
        border-bottom: 1px solid var(--border);
        border-right: none;
        background: var(--bg-surface);
    }

    .layout-sidebar .main-content {
        margin-left: 0;
        padding: 1rem;
        width: 100%;
    }

    .nav-mobile-wrapper {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        position: relative;
        min-height: 50px;
        /* Give it a minimum height to prevent squishing */
    }

    .nav-mobile-wrapper .mobile-toggle-btn {
        display: flex !important;
        align-items: center;
        background: transparent !important;
        color: var(--text-main) !important;
        position: absolute !important;
        left: 0 !important;
        /* Touch left edge */
        top: 50%;
        transform: translateY(-50%);
        padding: 0.5rem;
        z-index: 10;
    }

    .nav-mobile-wrapper .nav-brand-top {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        margin: 0 !important;
        /* Ensure no margins push it off-center */
    }

    .layout-sidebar .nav-header {
        display: none !important;
    }

    .nav-header {
        display: none !important;
    }

    .layout-sidebar .nav-menu,
    .nav-menu {
        flex-direction: column !important;
        width: 100vw !important;
        /* Forces full width */
        max-width: none !important;
        /* Removes the 320px limit */
        height: 100vh !important;
        background: var(--bg-surface) !important;
        /* White background */
        padding: 0 !important;
        display: flex !important;
        /* Keep flex so it renders items appropriately */
        gap: 0 !important;
        position: fixed !important;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        /* Start hidden off-screen */
        z-index: 9999 !important;
        /* Ensures it stays above all content */
        border-right: 1px solid var(--border);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding-bottom: 90px !important;
        /* Space for fixed nav-user at bottom */
    }

    .layout-sidebar .nav-menu .mobile-menu-header,
    .nav-menu .mobile-menu-header {
        display: flex !important;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        margin-bottom: 1rem !important;
    }

    /* Links on Mobile Full Screen Menu */
    .layout-sidebar .nav-menu .nav-link,
    .nav-menu .nav-link {
        font-size: 1rem !important;
        color: var(--text-main) !important;
        font-weight: 500;
        justify-content: flex-start !important;
        padding: 1rem 1.5rem !important;
        border-bottom: none !important;
        background: transparent !important;
    }

    .layout-sidebar .nav-menu .nav-link i,
    .nav-menu .nav-link i {
        font-size: 1.25rem !important;
        margin-right: 1rem !important;
        color: var(--text-muted) !important;
    }

    .layout-sidebar .nav-menu .nav-link:hover,
    .nav-menu .nav-link:hover {
        background: rgba(79, 70, 229, 0.05) !important;
        color: var(--primary) !important;
    }

    .layout-sidebar .nav-menu .nav-link:hover i,
    .nav-menu .nav-link:hover i {
        color: var(--primary) !important;
    }

    .layout-sidebar .nav-menu.active,
    .nav-menu.active {
        transform: translateX(0);
        /* Slide in */
    }

    #mobileCloseBtn {
        display: block !important;
    }

    /* Logout section inside the mobile menu */
    .nav-user-inline {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-top: auto !important;
        padding: 1.5rem !important;
        border-top: 1px solid var(--border) !important;
        color: var(--text-main) !important;
    }

    .layout-sidebar .nav-user,
    .nav-user {
        display: none !important;
    }

    .btn-logout {
        color: var(--text-muted) !important;
        font-size: 1.25rem;
        padding: 0 !important;
        flex-shrink: 0;
        width: auto !important;
        /* Override any inherited full-width */
        margin-left: auto;
        /* Push icon to the far right */
        display: flex !important;
        align-items: center;
    }

    .layout-sidebar .btn-logout span,
    .btn-logout span {
        display: none !important;
        /* Hide "Sair" text on mobile */
    }

    .user-info-mobile-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
        flex: 1;
        /* Take all available space, pushing logout icon to the right */
    }

    .user-info-mobile-wrapper .user-name-span {
        display: block;
        font-weight: 600;
        font-size: 1rem;
        color: var(--text-main);
        white-space: nowrap;
    }

    .user-info-mobile-wrapper .user-role-span {
        display: block;
        font-size: 0.8rem;
        color: var(--text-main);
        white-space: nowrap;
    }
}

/* Cards & Glassmorphism */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.875rem;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

.input-icon input,
.input-icon select,
.input-icon textarea {
    padding-left: 2.75rem !important;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    height: 48px;
    box-sizing: border-box;
}

textarea {
    height: auto;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.875rem;
}

.btn:active {
    transform: scale(0.98);
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    filter: brightness(0.9);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-base);
}

.btn-block {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease-out;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Login Container */
.login-container {
    min-height: 100vh;
    display: flex;
    flex: 1;
    width: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f6f8fb 0%, #e5e7eb 100%);
    padding: 1rem;
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
}

.login-box .form-group label {
    text-align: left;
    display: block;
}

.login-box .form-group .input-icon input {
    text-align: left;
    width: 100%;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo i {
    font-size: 3rem;
    color: var(--primary);
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.login-logo h2 {
    margin-top: 0.5rem;
    font-size: 1.5rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.stat-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-info span {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-info h3 {
    font-size: 1.5rem;
    margin: 0;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional Responsive Fixes */
@media (max-width: 768px) {
    .os-layout {
        flex-direction: column;
    }

    .os-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 2rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .login-box {
        padding: 1.5rem;
    }
}

/* Table */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #fff;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th,
.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: var(--bg-base);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.table tr:hover td {
    background-color: rgba(79, 70, 229, 0.02);
}

.table tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* Typography Helpers */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

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

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.gap-2 {
    gap: 0.5rem;
}

.flex {
    display: flex;
}

/* Responsive OS Form Layout */
.os-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.os-sidebar {
    width: 250px;
    position: sticky;
    top: 90px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.os-nav ul {
    list-style: none;
}

.os-nav li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-weight: 500;
    border-radius: var(--radius-md);
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.os-nav li a:hover,
.os-nav li a.active {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

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

.os-section {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.os-section h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* Modal / Floating Menu Blur */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    width: calc(100% - 2rem);
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Drag and Drop Zone */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 3rem 1rem;
    text-align: center;
    cursor: pointer;
    background: var(--bg-base);
    transition: var(--transition);
    color: var(--text-muted);
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.drop-zone i {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    display: block;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 1;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Quill styling overrides to match theme */
.ql-toolbar.ql-snow {
    border-color: var(--border) !important;
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    background: var(--bg-surface);
}

.ql-container.ql-snow {
    border-color: var(--border) !important;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-main);
    font-family: inherit;
}

/* Layout adjustments */
@media (max-width: 768px) {
    .os-layout {
        flex-direction: column;
    }

    .os-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 1rem;
    }
}

.fab-new-os {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.2s, background-color 0.2s;
    text-decoration: none;
}

.fab-new-os:hover {
    transform: scale(1.1);
    background-color: var(--primary-dark);
    color: white;
}