/* =============================================================================
   VICTORY GARDENS CONDOMINIUM - MAIN STYLESHEET
   ============================================================================= */

/* External CSS imports (using @import for link equivalent) */
@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css");
@import url("https://fonts.googleapis.com/css2?family=Carattere&display=swap");
@import url("https://cdn.jsdelivr.net/npm/quill@2.0.3/dist/quill.snow.css");

/* =============================================================================
   CUSTOM STYLES
   ============================================================================= */

/* Modal positioning */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1055;
    min-width: 75%;
}

/* Bootstrap Icons vertical alignment */
.bi {
    vertical-align: -0.125em;
    fill: currentColor;
}

/* Navbar styles */
.navbar {
    min-height: 85px !important;
}

.navbar.bg-dark {
    background: linear-gradient(180deg, #1f2429 0%, #000000 100%) !important;
}

.navbar.bg-primary {
    background: linear-gradient(180deg, #0d6efd 0%, #0a4fb3 100%) !important;
}

.navbar-brand {
    font-size: 1.5em;
    font-weight: bold;
}

@media (max-width: 991.98px) {
    .navbar .navbar-collapse {
        padding-top: 0.25rem;
    }

    .navbar .navbar-nav .nav-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0;
        text-align: left;
    }

    .navbar .navbar-nav .nav-link svg {
        display: inline-block !important;
        margin: 0 !important;
    }
}

#hanging-icons h2 {
    font-size: 1.4em;
}

footer p {
    font-size: 1em;
}

footer a {
    font-size: 1.5em;
}

.carattere-regular {
    font-family: "Carattere", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 3rem;
}

/* =============================================================================
   CSS VARIABLES - Sidebar customization
   ============================================================================= */
:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 0px;
    --sidebar-bg: #212529;
    --sidebar-bg-rgb: 33, 37, 41;
    --sidebar-text: #ffffff;
    --sidebar-text-muted: rgba(255, 255, 255, 0.55);
    --sidebar-text-hover: #ffffff;
    --sidebar-link-hover-bg: rgba(255, 255, 255, 0.1);
    --sidebar-link-active-bg: #0d6efd;
    --sidebar-link-active-text: #ffffff;
    --sidebar-border-color: rgba(255, 255, 255, 0.15);
    --sidebar-transition-speed: 0.3s;
    --sidebar-z-index: 1040;
    --sidebar-backdrop-bg: rgba(0, 0, 0, 0.5);
}

/* =============================================================================
   SIDEBAR STYLES
   ============================================================================= */
#sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    transition: all var(--sidebar-transition-speed) ease;
    position: relative;
    z-index: var(--sidebar-z-index);
    flex: 0 0 auto;
}

#sidebar.sidebar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
}

#sidebar::-webkit-scrollbar {
    width: 6px;
}

#sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

#sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

#sidebar .sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--sidebar-border-color);
    margin-bottom: 1rem;
}

#sidebar .sidebar-brand {
    color: var(--sidebar-text);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#sidebar .sidebar-brand:hover {
    color: var(--sidebar-text);
}

#sidebar .sidebar-brand img {
    max-height: 40px;
    width: auto;
}

#sidebar #menu {
    padding: 0;
    margin: 0;
    list-style: none;
}

#sidebar .nav-item {
    margin-bottom: 2px;
}

#sidebar .nav-link {
    color: var(--sidebar-text-muted);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sidebar .nav-link:hover,
#sidebar .nav-link:focus {
    color: var(--sidebar-text-hover);
    background-color: var(--sidebar-link-hover-bg);
}

#sidebar .nav-link.active {
    color: var(--sidebar-link-active-text);
    background-color: var(--sidebar-link-active-bg);
    font-weight: 500;
}

#sidebar .nav-link i,
#sidebar .nav-link .bi {
    font-size: 1.125rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

#sidebar .nav-link span {
    overflow: hidden;
    text-overflow: ellipsis;
}

#sidebar .nav-link[data-bs-toggle="collapse"],
#sidebar .nav-link[aria-controls] {
    justify-content: space-between;
}

#sidebar .nav-link[data-bs-toggle="collapse"] > span:first-child,
#sidebar .nav-link[aria-controls] > span:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#sidebar .nav-link > i:first-child,
#sidebar .nav-link > span:first-child > i:first-child {
    margin-right: 0 !important;
}

#sidebar .bi-chevron-down {
    transition: transform var(--sidebar-transition-speed) ease;
    font-size: 0.75rem;
    flex-shrink: 0;
}

#sidebar .bi-chevron-down.rotate-180 {
    transform: rotate(180deg);
}

#sidebar .nav-link[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

#sidebar .collapse,
#sidebar .collapsing {
    margin-left: 0;
    transition: height 0.6s ease;
}

#sidebar .collapse .nav,
#sidebar .collapsing .nav {
    padding-left: 0;
    border-left: none;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
}

#sidebar hr {
    border-color: var(--sidebar-border-color);
    opacity: 1;
    margin: 1rem 0;
}

#sidebar .nav-item hr {
    margin: 0.75rem 0;
}

#sidebar .sidebar-section-header {
    color: var(--sidebar-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1rem 0.5rem;
    margin-top: 0.5rem;
}

#sidebar .btn-outline-secondary {
    color: var(--sidebar-text-muted);
    border-color: var(--sidebar-border-color);
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

#sidebar .btn-outline-secondary:hover,
#sidebar .btn-outline-secondary:focus {
    color: var(--sidebar-text);
    background-color: var(--sidebar-link-hover-bg);
    border-color: var(--sidebar-text-muted);
}

#sidebar .sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--sidebar-border-color);
    margin-top: auto;
}

#sidebar .sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    color: var(--sidebar-text);
    text-decoration: none;
}

#sidebar .sidebar-user:hover {
    background-color: var(--sidebar-link-hover-bg);
}

#sidebar .sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

#sidebar .sidebar-user-info {
    overflow: hidden;
}

#sidebar .sidebar-user-name {
    font-weight: 500;
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sidebar .sidebar-user-role {
    font-size: 0.8125rem;
    color: var(--sidebar-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 991.98px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: calc(-1 * var(--sidebar-width));
        height: 100vh;
        z-index: var(--sidebar-z-index);
        overflow-y: auto;
        box-shadow: none;
    }

    #sidebar.expanded,
    #sidebar.show {
        left: 0;
        box-shadow: 0.5rem 0 1rem rgba(0, 0, 0, 0.15);
    }

    #sidebarBackdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--sidebar-backdrop-bg);
        z-index: calc(var(--sidebar-z-index) - 1);
        opacity: 0;
        transition: opacity var(--sidebar-transition-speed) ease;
    }

    #sidebarBackdrop.show {
        display: block;
        opacity: 1;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

.sidebar-toggle-fixed {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: calc(var(--sidebar-z-index) + 1);
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 0.375rem;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle-fixed:hover {
    background-color: var(--sidebar-link-active-bg);
}

.sidebar-toggle-fixed .bi {
    font-size: 1.25rem;
}

@media (max-width: 991.98px) {
    .sidebar-toggle-fixed {
        display: flex;
    }
}

@media (max-width: 991.98px) {
    .navbar #sidebarToggle,
    .navbar .navbar-toggler#sidebarToggle {
        display: inline-flex;
    }
}

.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    transition: all var(--sidebar-transition-speed) ease;
}

.sidebar-fixed ~ .main-content {
    margin-left: var(--sidebar-width);
}

.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Light sidebar theme */
#sidebar.sidebar-light {
    --sidebar-bg: #f8f9fa;
    --sidebar-text: #212529;
    --sidebar-text-muted: rgba(33, 37, 41, 0.65);
    --sidebar-text-hover: #000000;
    --sidebar-link-hover-bg: rgba(0, 0, 0, 0.05);
    --sidebar-link-active-bg: #0d6efd;
    --sidebar-link-active-text: #ffffff;
    --sidebar-border-color: rgba(0, 0, 0, 0.1);
}

#sidebar.sidebar-primary {
    --sidebar-bg: #0d6efd;
    --sidebar-link-active-bg: rgba(255, 255, 255, 0.2);
    --sidebar-link-hover-bg: rgba(255, 255, 255, 0.1);
}

#sidebar.sidebar-success {
    --sidebar-bg: #198754;
    --sidebar-link-active-bg: rgba(255, 255, 255, 0.2);
    --sidebar-link-hover-bg: rgba(255, 255, 255, 0.1);
}

#sidebar .nav-link .badge {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25em 0.5em;
}

#sidebar .sidebar-tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    z-index: 1050;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

#sidebar.animate-in {
    animation: slideInLeft var(--sidebar-transition-speed) ease forwards;
}

#sidebar.animate-out {
    animation: slideOutLeft var(--sidebar-transition-speed) ease forwards;
}

@media print {
    #sidebar,
    #sidebarToggle,
    #sidebarBackdrop {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* =============================================================================
   COMMON PAGE STYLES
   ============================================================================= */
#userinfo {
    padding: 1em 0 0 0 !important;
}

.span3 .hero-unit {
    padding: 20px !important;
}

.span3 .hero-unit p {
    font-size: 1.2em !important;
    line-height: 1.5em !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 15px;
    border-radius: 5px;
    margin: 5px 0;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link i {
    font-size: 1.2rem;
    min-width: 30px;
}

.collapse.show {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 5px 0;
}

.nav-link .bi-chevron-down {
    transition: transform 0.3s ease;
}

.nav-link[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.file-manager-container {
    max-width: 1200px;
    margin: 2rem auto;
}

.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
}

.table tbody tr {
    cursor: default;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.calendar-container {
    max-width: 1078px;
    margin: 0 auto;
}

.calendar-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 55.66%;
    height: 0;
    overflow: hidden;
    border: solid 1px #777;
    border-radius: 4px;
}

.calendar-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .calendar-wrapper {
        padding-bottom: 100%;
        min-height: 300px;
    }
}

/* =============================================================================
   COMMON ADMIN STYLES - Bootstrap 5.3 Rounded Corners
   ============================================================================= */
.btn:not(.btn-close) {
    border-radius: var(--bs-border-radius) !important;
}

.card {
    border-radius: var(--bs-border-radius) !important;
}

.modal-content {
    border-radius: var(--bs-border-radius) !important;
}

.modal-header {
    border-top-left-radius: calc(var(--bs-border-radius) - 1px);
    border-top-right-radius: calc(var(--bs-border-radius) - 1px);
}

.modal-footer {
    border-bottom-left-radius: calc(var(--bs-border-radius) - 1px);
    border-bottom-right-radius: calc(var(--bs-border-radius) - 1px);
}

.form-control,
.form-select {
    border-radius: var(--bs-border-radius) !important;
}

.btn-group > .btn,
.btn-group > .btn-group {
    border-radius: var(--bs-border-radius) !important;
}

.pagination .page-link {
    border-radius: var(--bs-border-radius) !important;
}

.dropdown-menu {
    border-radius: var(--bs-border-radius) !important;
}

.dropdown-item {
    border-radius: calc(var(--bs-border-radius) - 1px) !important;
}

.alert {
    border-radius: var(--bs-border-radius) !important;
}

.badge {
    border-radius: calc(var(--bs-border-radius) - 1px) !important;
}

.btn-close {
    padding: 0.25em 0.25em !important;
    width: 1em !important;
    height: 1em !important;
    border-radius: 0.25rem !important;
}

.tooltip-inner {
    border-radius: var(--bs-border-radius) !important;
}

/* =============================================================================
   COMMON ADMIN PAGE STYLES
   ============================================================================= */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    transition: all 0.3s ease;
}

.nav-header {
    color: var(--bs-body-color) !important;
    font-size: 1em !important;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 0.9375rem;
    border-radius: var(--bs-border-radius);
    margin: 0.3125rem 0;
    transition: all 0.3s;
    white-space: nowrap;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: var(--bs-white);
    background: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    min-width: 1.875rem;
}

.sidebar .collapse.show {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--bs-border-radius);
    padding: 0.3125rem 0;
}

@media (max-width: 767px) {
    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        width: 250px;
        z-index: 1050;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }

    .sidebar.expanded {
        left: 0;
    }

    .sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1049;
        transition: opacity 0.3s ease;
    }

    .sidebar-backdrop.show {
        display: block;
    }

    .content-wrapper {
        margin-left: 0;
    }

    .mobile-toggle:hover {
        background: #1a1a2e;
    }

    .navbar-toggler:focus,
    .navbar-toggler:active {
        outline: none;
        border: none;
        box-shadow: none;
    }
}

@media (min-width: 768px) {
    .mobile-toggle {
        display: none;
    }

    .sidebar {
        position: relative;
    }

    .sidebar-backdrop {
        display: none !important;
    }
}

.content-wrapper {
    min-width: 0;
}

body {
    overflow-x: hidden;
}

.navbar-brand {
    font-size: 1.5em;
}

.drop-zone {
    border: 2px dashed var(--bs-border-color);
    padding: 3rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bs-tertiary-bg);
    position: relative;
}

.drop-zone input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #0d6efd;
    background: var(--bs-primary-bg-subtle);
}

.drop-zone.dragover {
    border-color: #0d6efd;
    background: #cfe2ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    color: var(--bs-secondary-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    pointer-events: none;
}

.drop-zone:hover .upload-icon {
    color: #0d6efd;
}

.drop-zone h4,
.drop-zone p {
    pointer-events: none;
}

.file-preview {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
}

.file-preview.show {
    display: block;
}

.upload-area {
    border: 2px dashed var(--bs-border-color);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #0d6efd;
    background: #f8f9ff;
}

.progress-container {
    display: none;
    margin-top: 1rem;
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-overlay.show {
    display: flex;
}

.current-path {
    background: var(--bs-tertiary-bg);
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-family: monospace;
}

.path-display {
    font-family: 'Courier New', monospace;
    background: var(--bs-tertiary-bg);
    padding: 0.125rem 0.375rem;
    border-radius: var(--bs-border-radius-sm);
    font-size: 0.9em;
}

.file-tree-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 0.625rem;
    background: var(--bs-white);
    box-sizing: border-box;
}

.selected-paths {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: auto;
}

.selected-path-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--bs-primary-bg-subtle);
    border-radius: var(--bs-border-radius);
    margin-bottom: 0.3125rem;
    border-left: 3px solid var(--bs-primary);
}

.selected-path-item.file-item {
    border-left-color: var(--bs-success);
    background: var(--bs-success-bg-subtle);
}

.browse-toolbar {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
    padding: 0.5rem;
    background: var(--bs-tertiary-bg);
    border-radius: var(--bs-border-radius);
}

.quick-select-item {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: var(--bs-border-radius);
    margin-bottom: 0.125rem;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.85rem;
    width: 100%;
    gap: 0.5rem;
    justify-content: space-between;
}

.quick-select-item:hover {
    background: var(--bs-secondary-bg);
}

.quick-select-item.selected {
    background: var(--bs-primary-bg-subtle);
}

.subdir-indent {
    padding-left: 1.25rem;
    border-left: 2px solid var(--bs-border-color);
    margin-left: 0.625rem;
}

.access-card {
    border-left: 4px solid #0d6efd;
}

.access-card.expiring-soon {
    border-left-color: #ffc107;
}

.access-card.expired {
    border-left-color: #dc3545;
}

.user-badge {
    font-size: 0.75em;
    vertical-align: middle;
}

.btn-icon {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin-animation {
    animation: spin 1s linear infinite;
}

.is-invalid {
    border-color: #dc3545;
}

.card-header h5 {
    margin: 0;
}

.inspection-modal .modal-dialog {
    max-width: 75%;
}

.quill-wrapper {
    display: block;
    width: 100%;
    clear: both;
}

.quill-editor .ql-container {
    height: 150px;
    overflow-y: auto;
}

.quill-editor .ql-editor {
    height: 150px;
}

.quill-editor {
    width: 100%;
    display: block;
    position: relative;
    overflow: visible;
}

.quill-editor .ql-toolbar,
.quill-editor .ql-container {
    display: block;
}

.icon-preview {
    font-size: 1.5rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.icon-picker {
    position: relative;
}

.icon-picker .input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
}

.icon-picker .icon-preview i {
    line-height: 1;
}

.icon-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 250px;
    overflow-y: auto;
    background: var(--bs-white);
    border: 1px solid rgba(0,0,0,.15);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

.icon-dropdown .list-group-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.preview-box {
    border: 1px dashed var(--bs-border-color);
    padding: 0.75rem;
    border-radius: var(--bs-border-radius);
    background: var(--bs-tertiary-bg);
}

.section-hint {
    font-size: 0.85rem;
    color: #6c757d;
}

.settings-card {
    border: 1px solid var(--bs-border-color);
    padding: 1.25rem;
    background: var(--bs-body-bg);
}

.settings-card + .settings-card {
    margin-top: 1.5rem;
}

.settings-card h5 {
    margin-bottom: 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--bs-secondary-color);
}

.drag-handle {
    cursor: grab;
    color: var(--bs-secondary-color);
    padding: 0.25rem;
}

.drag-handle:hover {
    color: #0d6efd;
}

.drag-handle:active {
    cursor: grabbing;
}

.content-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    cursor: move;
    position: relative;
}

.content-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.content-card.type-notice { border-left-color: #0d6efd; }
.content-card.type-welcome { border-left-color: #198754; }
.content-card.type-promo { border-left-color: #ffc107; }
.content-card.type-recent_files { border-left-color: #6f42c1; }

.content-card .accordion-button {
    background-color: var(--bs-white);
}

.content-card .accordion-button:not(.collapsed) {
    background-color: #f9f9f9;
}

.content-card .accordion-body {
    background-color: #f9f9f9;
}

.content-card .accordion-button:focus {
    box-shadow: none;
}

.content-card.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.content-card.drag-over {
    border-top: 3px solid #0d6efd;
}

.accordion-actions {
    white-space: nowrap;
}

.status-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
    border-radius: var(--bs-border-radius-pill);
}

.table-spinner {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
}

.table-spinner.show {
    display: flex;
}

.table-container {
    position: relative;
    min-height: 200px;
}

.unit-tag {
    background: var(--bs-primary-bg-subtle);
    border: 1px solid var(--bs-primary-border-subtle);
    padding: 2px 0.5rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.unit-tag .remove-tag {
    cursor: pointer;
    color: var(--bs-secondary-color);
    font-size: 1.1em;
    line-height: 1;
}

.unit-tag .remove-tag:hover {
    color: var(--bs-danger);
}

.unit-tag.is-primary {
    background: var(--bs-success-bg-subtle);
    border-color: var(--bs-success-border-subtle);
}

.unit-tag.is-primary::before {
    content: 'Primary ';
}

.unit-dropdown-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unit-dropdown-item:hover {
    background-color: var(--bs-tertiary-bg);
}

.unit-dropdown-item.selected {
    background-color: var(--bs-primary-bg-subtle);
}

.make-primary-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.toolbar-card {
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    padding: 1rem;
}

.bg-purple {
    background-color: #6f42c1 !important;
    color: var(--bs-white);
}

.nav-tabs .nav-link {
    color: #000 !important;
}

.nav-tabs .nav-link:hover {
    color: #0d6efd !important;
}

.modal-lg .modal-dialog {
    max-width: 800px;
}
