/* NP Extranet - Base Styles */

:root {
    --color-primary: #1a1a2e;
    --color-secondary: #16213e;
    --color-accent: #e94560;
    --color-accent-light: #ff6b6b;
    --color-bg: #0f0f1a;
    --color-surface: #1a1a2e;
    --color-surface-hover: #252540;
    --color-text: #eaeaea;
    --color-text-muted: #9ca3af;
    --color-border: #2d2d44;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    
    --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    
    --sidebar-width: 260px;
    --header-height: 64px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========================================
   LAYOUT - App Shell
   ======================================== */

/* Hide sidebar toggle checkbox */
.sidebar-toggle-checkbox {
    display: none;
}

/* Header */
.header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1.5rem;
    gap: 1rem;
}

/* Hamburger button - hidden on desktop */
.hamburger-btn {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.hamburger-btn:hover {
    background: var(--color-surface-hover);
}

.hamburger-icon {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    left: 0;
}

.hamburger-icon::before {
    top: -6px;
}

.hamburger-icon::after {
    top: 6px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: -0.5px;
}

.logo-divider {
    width: 2px;
    height: 24px;
    background: var(--color-border);
}

.logo-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

/* Icon buttons */
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    position: relative;
}

.icon-btn:hover {
    background: var(--color-surface-hover);
}

.notification-icon {
    font-size: 1.25rem;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: var(--color-accent);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Dropdowns */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dropdown-toggle:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-text-muted);
}

.dropdown-arrow {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: 200;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-right {
    left: auto;
    right: 0;
}

.dropdown-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.dropdown-header strong {
    display: block;
    font-weight: 600;
}

.dropdown-header small {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.dropdown-item {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--color-surface-hover);
}

.dropdown-item.active {
    color: var(--color-accent);
}

.dropdown-item.text-danger {
    color: var(--color-error);
}

.dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: 0.25rem 0;
}

/* Property selector */
.property-selector .property-icon {
    font-size: 1rem;
}

.property-selector .property-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Single property display (no dropdown) */
.property-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 0.875rem;
}

.property-display .property-icon {
    font-size: 1rem;
}

.property-display .property-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* User menu */
.user-toggle {
    border: none;
    padding: 0.25rem;
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50%;
}

/* ========================================
   SIDEBAR
   ======================================== */

.app-layout {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    overflow-y: auto;
    z-index: 90;
    transition: transform var(--transition-normal);
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin: 0.125rem 0.75rem;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.sidebar .nav-link:hover {
    color: var(--color-text);
    background: var(--color-surface-hover);
}

.sidebar .nav-link.active {
    color: var(--color-accent);
    background: rgba(233, 69, 96, 0.1);
}

.nav-icon {
    font-size: 1.125rem;
    width: 24px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

.nav-section-divider {
    height: 1px;
    background: var(--color-border);
    margin: 0.75rem 1.5rem;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 80;
    cursor: pointer;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
}

.content-container {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 1rem 2rem;
    margin-left: var(--sidebar-width);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-divider {
    color: var(--color-border);
}

.footer-version {
    font-family: var(--font-mono);
    font-size: 0.625rem;
}

/* ========================================
   PAGE CONTENT STYLES
   ======================================== */

/* Page header */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
}

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

/* Cards */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card h2, .card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card p, .card-text {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Stub page styling */
.stub-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.stub-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.stub-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stub-text {
    color: var(--color-text-muted);
    max-width: 400px;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    background: var(--color-accent);
    color: white;
}

.btn:hover {
    background: var(--color-accent-light);
    transform: translateY(-1px);
}

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

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

.btn-secondary:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-text-muted);
}

/* ========================================
   AUTH LAYOUT
   ======================================== */

.auth-page {
    display: flex;
    flex-direction: column;
}

.auth-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-header {
    padding: 2rem;
    text-align: center;
}

.logo-centered {
    justify-content: center;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.auth-footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.auth-footer-links {
    margin-top: 0.5rem;
}

.auth-footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.auth-footer-links a:hover {
    color: var(--color-text);
}

.auth-footer-links span {
    margin: 0 0.5rem;
}

/* ========================================
   HTMX STATES
   ======================================== */

.htmx-request .btn {
    opacity: 0.7;
    pointer-events: none;
}

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

/* ========================================
   RESPONSIVE - Mobile
   ======================================== */

@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
    }
    
    /* Show hamburger on mobile */
    .hamburger-btn {
        display: block;
    }
    
    /* Hide property selector text on mobile */
    .property-selector .property-name {
        display: none;
    }
    
    /* Sidebar hidden by default on mobile */
    .sidebar {
        transform: translateX(-100%);
    }
    
    /* Show overlay when sidebar is open */
    .sidebar-toggle-checkbox:checked ~ .app-layout .sidebar {
        transform: translateX(0);
    }
    
    .sidebar-toggle-checkbox:checked ~ .app-layout .sidebar-overlay {
        display: block;
    }
    
    /* Main content full width on mobile */
    .main-content {
        margin-left: 0;
    }
    
    .footer {
        margin-left: 0;
    }
    
    .content-container {
        padding: 1rem;
    }
    
    /* Adjust hero for mobile */
    .hero h1 {
        font-size: 1.5rem;
    }
    
    /* Stack dashboard cards */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer stacks on mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

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

.text-link {
    color: #60a5fa;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.text-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.text-danger {
    color: var(--color-error);
}

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

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* ========================================
   FORM COMPONENTS
   ======================================== */

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

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

.required-mark {
    color: var(--color-accent);
    margin-left: 0.125rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--color-surface);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.375rem;
}

.form-error {
    font-size: 0.75rem;
    color: var(--color-error);
    margin-top: 0.375rem;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea,
.form-group.has-error .form-select {
    border-color: var(--color-error);
}

/* Checkbox & Radio */
.form-check,
.form-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-check-input,
.form-radio-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-accent);
}

.form-check-label,
.form-radio-label {
    font-size: 0.875rem;
    cursor: pointer;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.radio-group-inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Switch toggle */
.form-switch .form-check-input {
    width: 40px;
    height: 22px;
    border-radius: 11px;
    appearance: none;
    background: var(--color-border);
    position: relative;
    transition: background var(--transition-fast);
}

.form-switch .form-check-input::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: transform var(--transition-fast);
}

.form-switch .form-check-input:checked {
    background: var(--color-accent);
}

.form-switch .form-check-input:checked::before {
    transform: translateX(18px);
}

/* ========================================
   BUTTON VARIANTS
   ======================================== */

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

.btn-danger:hover {
    background: #dc2626;
}

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

.btn-success:hover {
    background: #059669;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-icon {
    padding: 0.5rem;
    min-width: 36px;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
}

/* ========================================
   DATA TABLE
   ======================================== */

.table-container {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    background: var(--color-surface);
    font-weight: 600;
    text-align: left;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: var(--color-surface-hover);
}

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

.col-actions {
    width: 1%;
    white-space: nowrap;
}

/* Sortable headers */
.sort-header {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-text);
    text-decoration: none;
}

.sort-header:hover {
    color: var(--color-accent);
}

.sort-icon::after {
    content: '↕';
    font-size: 0.75rem;
    opacity: 0.4;
}

.sort-header.sorted .sort-icon::after {
    opacity: 1;
}

.sort-header.sorted-asc .sort-icon::after {
    content: '↑';
}

.sort-header.sorted-desc .sort-icon::after {
    content: '↓';
}

/* Empty state */
.table-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
}

.table-empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

/* Row selection */
.data-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-accent);
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    font-size: 0.875rem;
}

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

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 0.875rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pagination-btn:hover:not(.disabled) {
    background: var(--color-surface-hover);
    border-color: var(--color-accent);
}

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

.pagination-pages {
    color: var(--color-text-muted);
    padding: 0 0.5rem;
}

/* ========================================
   MODAL
   ======================================== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    margin: 1rem;
    animation: modal-enter 0.2s ease-out;
}

.modal-sm .modal-dialog,
.modal-sm.modal-dialog {
    max-width: 360px;
}

.modal-lg .modal-dialog,
.modal-lg.modal-dialog {
    max-width: 720px;
}

@keyframes modal-enter {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-text);
}

.modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

/* ========================================
   ALERTS & TOASTS
   ======================================== */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--color-warning);
    color: var(--color-warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    color: #3b82f6;
}

.alert-title {
    display: block;
    margin-bottom: 0.25rem;
}

.alert-message {
    flex: 1;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
    line-height: 1;
}

.alert-close:hover {
    opacity: 1;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + 1rem);
    right: 1rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    animation: toast-enter 0.3s ease-out;
    min-width: 280px;
    max-width: 400px;
}

@keyframes toast-enter {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-success { border-left: 3px solid var(--color-success); }
.toast-error { border-left: 3px solid var(--color-error); }
.toast-warning { border-left: 3px solid var(--color-warning); }
.toast-info { border-left: 3px solid #3b82f6; }

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    line-height: 1;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    white-space: nowrap;
}

.badge-default {
    background: var(--color-surface-hover);
    color: var(--color-text-muted);
}

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

.badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-error);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* ========================================
   SPINNER
   ======================================== */

.spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner-svg {
    animation: spin 0.8s linear infinite;
}

.spinner-sm .spinner-svg { width: 16px; height: 16px; }
.spinner-md .spinner-svg { width: 24px; height: 24px; }
.spinner-lg .spinner-svg { width: 32px; height: 32px; }

.spinner-track {
    opacity: 0.2;
}

.spinner-head {
    stroke: var(--color-accent);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinner-text {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
    color: var(--color-accent);
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--color-border);
}

.breadcrumb-item.active {
    color: var(--color-text);
}

/* ========================================
   TABS
   ======================================== */

.tabs {
    margin-bottom: 1.5rem;
}

.tabs-list {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.tabs-list::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.tab-btn {
    padding: 0.875rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    margin-bottom: -1px;
}

.tab-btn:hover {
    color: var(--color-text);
    background: var(--color-surface-hover);
}

.tab-btn.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.375rem;
    background: var(--color-surface-hover);
    border-radius: 10px;
    font-size: 0.625rem;
    margin-left: 0.5rem;
}

.tab-panel {
    padding: 1.5rem 0;
}

.tab-panel[hidden] {
    display: none;
}

/* ========================================
   PROPERTY SECTIONS
   ======================================== */

.property-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.property-section {
    /* Container for each section */
}

.section-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.section-content {
    padding: 1.5rem;
}

.section-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.section-form {
    /* Form within a section */
}

/* Subsection titles */
.subsection-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.subsection-title:first-child {
    margin-top: 0;
}

/* Details list */
.details-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item-full {
    grid-column: 1 / -1;
}

.detail-item dt {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item dd {
    font-size: 0.9375rem;
    color: var(--color-text);
    margin: 0;
}

/* Form grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-inline {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

/* Fees list */
.fees-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.fee-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.fee-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.fee-name {
    font-weight: 500;
}

.fee-amount {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.add-fee-form {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.add-fee-form h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Amenities */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.amenities-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.amenity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: var(--color-surface-hover);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.custom-amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.custom-amenity-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

/* Accessibility */
.accessibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.accessibility-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--color-success);
    border-radius: var(--radius-md);
    color: var(--color-success);
    font-size: 0.875rem;
}

/* Photos */
.upload-area {
    /* Photo upload area */
}

.upload-dropzone {
    position: relative;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.upload-dropzone:hover {
    border-color: var(--color-accent);
    background: rgba(233, 69, 96, 0.05);
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.upload-icon {
    font-size: 2rem;
}

.upload-progress {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    pointer-events: none;
    color: var(--color-accent);
}

.upload-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.upload-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.upload-preview-count {
    font-weight: 500;
    color: var(--color-text);
}

.upload-preview-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.upload-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    background-color: var(--color-border);
    border: 1px solid var(--color-border);
}

.upload-thumb-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-dark);
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.875rem;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.photo-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: grab;
}

.photo-card:active {
    cursor: grabbing;
}

.photo-ghost {
    opacity: 0.4;
}

.photo-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-photo-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--color-accent);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.photo-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
}

.photo-actions .form-input {
    flex: 1;
}

/* ================================
   Room Adjacencies
================================ */

.adjacency-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.adjacency-form .form-group {
    margin-bottom: 0;
    min-width: 180px;
    flex: 1;
}

.adjacency-form .form-group:last-of-type {
    flex: 0 0 auto;
}

.adjacency-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.adjacency-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
}

.adjacency-item:hover {
    background: var(--color-bg-secondary);
}

.adjacency-room {
    font-weight: 500;
    flex: 1;
}

.adjacency-item .badge {
    text-transform: capitalize;
}

.photos-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 0.75rem;
}

/* Form input small variant */
.form-input-sm {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
}

/* ========================================
   ROOM TYPES
   ======================================== */

/* Room Types Link Card on Property Page */
.room-types-link-card {
    border-color: var(--color-accent);
    border-width: 1px;
}

.room-types-summary {
    /* Container for the room types CTA */
}

.room-types-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.room-types-cta:hover {
    border-color: var(--color-accent);
    background: var(--color-surface-hover);
}

.room-types-icon {
    font-size: 1.5rem;
}

.room-types-text {
    flex: 1;
}

.room-types-arrow {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
}

.room-types-cta:hover .room-types-arrow {
    transform: translateX(4px);
    color: var(--color-accent);
}

/* Room Types List Page */
.room-type-name {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.room-type-desc {
    font-size: 0.75rem;
    display: block;
}

/* Page header with actions */
.page-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header-text {
    flex: 1;
    min-width: 200px;
}

.page-header-actions {
    display: flex;
    gap: 0.5rem;
}

/* Search form */
.search-form {
    /* Container for search */
}

/* Room Type Form */
.room-type-form {
    /* Form container */
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    position: sticky;
    bottom: 1rem;
    z-index: 10;
}

/* Amenity icons in checkboxes */
.amenity-icon {
    margin-right: 0.25rem;
}

/* Margin utilities */
.mb-4 {
    margin-bottom: 1.5rem;
}

/* Button danger style */
.btn-danger {
    background: var(--color-error);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Responsive adjustments for room types */
@media (max-width: 768px) {
    .page-header-content {
        flex-direction: column;
    }
    
    .page-header-actions {
        width: 100%;
    }
    
    .page-header-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   BULK ACTION BAR
   ======================================== */

.bulk-action-bar {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 1rem 2rem;
    display: none;
    align-items: center;
    gap: 1rem;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    animation: bulk-bar-enter 0.2s ease-out;
}

.bulk-action-bar.visible {
    display: flex;
}

@keyframes bulk-bar-enter {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bulk-count {
    font-weight: 600;
    color: var(--color-accent);
    white-space: nowrap;
}

.bulk-action-bar .form-select,
.bulk-action-bar .form-input {
    width: auto;
    min-width: 160px;
}

.bulk-action-bar .form-input {
    min-width: 120px;
}

.bulk-action-bar .btn-group {
    margin-left: auto;
}

/* Row selection state */
.data-table tbody tr.selected {
    background: rgba(233, 69, 96, 0.1);
}

.data-table tbody tr.selected:hover {
    background: rgba(233, 69, 96, 0.15);
}

/* Checkbox column */
.col-checkbox {
    width: 40px;
    text-align: center;
}

.col-checkbox input[type="checkbox"] {
    cursor: pointer;
}

/* Select all checkbox styling */
.select-all-checkbox {
    cursor: pointer;
}

/* Responsive bulk action bar */
@media (max-width: 768px) {
    .bulk-action-bar {
        left: 0;
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .bulk-action-bar .form-select,
    .bulk-action-bar .form-input {
        flex: 1;
        min-width: 0;
    }
    
    .bulk-action-bar .btn-group {
        width: 100%;
        margin-left: 0;
    }
    
    .bulk-action-bar .btn-group .btn {
        flex: 1;
    }
}

/* ========================================
   Status History Timeline
   ======================================== */

.status-history-timeline {
    position: relative;
    padding-left: 24px;
}

/* Vertical line connecting timeline items */
.status-history-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Circular marker on the timeline */
.timeline-marker {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 3px solid var(--color-accent);
    z-index: 1;
}

.timeline-content {
    padding-left: 0.5rem;
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.status-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-arrow {
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.875rem;
}

.timeline-time {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.timeline-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.timeline-field {
    font-weight: 500;
    color: var(--color-text);
}

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

.timeline-reason {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--color-border);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Responsive timeline */
@media (max-width: 480px) {
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-time {
        order: -1;
        margin-bottom: 0.25rem;
    }
}

/* ========================================
   Staff Directory Section
   ======================================== */

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-row {
    background: var(--color-surface-hover);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid var(--color-border);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
}

.contact-form-grid .form-group {
    margin-bottom: 0;
}

.contact-form-grid .form-label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.form-group-action {
    display: flex;
    align-items: flex-end;
    padding-bottom: 0.25rem;
}

.remove-contact-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
}

/* Responsive contact form */
@media (max-width: 1200px) {
    .contact-form-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .form-group-action {
        grid-column: 3;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .contact-form-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-group-action {
        grid-column: 2;
    }
}

@media (max-width: 480px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-action {
        grid-column: 1;
        justify-content: flex-start;
    }
}

/* ========================================
   LEGAL PAGES
   ======================================== */

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================
   PRINT STYLES FOR LEGAL PAGES
   ======================================== */

@media print {
    .sidebar,
    .header,
    .footer,
    .mobile-menu-toggle {
        display: none !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 1rem !important;
        width: 100% !important;
    }

    .legal-content {
        max-width: 100% !important;
    }

    .section-card {
        break-inside: avoid;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }

    a {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
