/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --light: #f8fafc;
    --dark: #1e293b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
}
/* Content Container */
.content-container {
    margin: 0;
    padding:0;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem 0 2rem;
}

.logo {
    margin: 0 0 0 0.3rem;
    display: flex;
    align-items: center;
}

.logo a {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    display: block;
    height: auto;
    max-height: 48px;
    width: auto;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Ensure nav children (links, forms, buttons) align vertically */
.nav a,
.nav .btn-link,
.nav .user-info {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Make forms inside nav align their controls */
.nav form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav a {
    font-size: 1.1rem;
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--primary);
}

.user-info {
    color: var(--dark);
    font-weight: 500;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    color: var(--secondary);
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feature h3 {
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1;
    height: 38px;
    vertical-align: middle;
    margin:0.25rem;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:disabled {
    background: #93c5fd;
    color: white;
    cursor: not-allowed;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--dark);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-danger:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0;
}

.btn-logout {
    font-size: 1rem;
    color: white;
    background-color: var(--danger);
    padding: 0.5rem;
    border-radius: 6px;
}

.btn-logout:hover {
    background-color: #ef7686;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem; /* ensure small buttons have same font size */
}

/* Forms */
.form {
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
/* Auth Forms */
.auth-form {
    margin: 0 auto;
}

.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="password"],
.auth-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.auth-form-group input:focus,
.auth-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox input {
    width: auto;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.password-policy-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.7rem;
    color: var(--secondary);
}

.error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Auth */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.auth-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.auth-box h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--secondary);
}

.auth-footer a {
    color: var(--primary);
}

/* Dashboard */
.dashboard h2 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}


.card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.card-table {
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow); 
    overflow-x:auto;
}

.card h3,
.card-table h3 {
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.quick-links {
    list-style: none;
}

.quick-links li {
    margin-bottom: 0.5rem;
}

.quick-links a {
    color: var(--primary);
    text-decoration: none;
}

/* App Layout */
.app-layout {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 200px;
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.right-sidebar {
    width: 250px;
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: width 0.2s ease;
}

/* hide right side bar on small screens */
@media (max-width: 767px) {
    .right-sidebar {
        display: none;
    }
}

.right-sidebar-content {
    min-height: 200px;
    flex-grow: 1;
}

/* Collapsible right sidebar support */
.app-layout.right-sidebar-collapsed .right-sidebar,
html.right-sidebar-collapsed .app-layout .right-sidebar {
    width: 64px;
    overflow: hidden;
}

.app-layout.right-sidebar-collapsed .right-sidebar h3,
html.right-sidebar-collapsed .app-layout .right-sidebar h3 {
    display: none;
}

.app-layout.right-sidebar-collapsed .right-sidebar-content,
html.right-sidebar-collapsed .app-layout .right-sidebar-content {
    display: none;
}


.right-sidebar-content div.note-editor {
    height: 100%;
}

.right-sidebar-content form.note-editor {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.right-sidebar-content textarea {
    width: 100%;
    flex-grow: 1;
    resize: none;
    font-family: inherit;
    font-size: 16px;
    padding: 0.5rem;
    background-color: rgb(254, 255, 222);
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
    border-color: #ccc;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 0px transparent;
    transition: border-color 1s ease, box-shadow 1s ease;
}

.right-sidebar-content textarea:focus {
    border-color: #424242;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(66, 153, 225, 0.5);
    outline: none;
}

.right-sidebar-content .note-status-unsaved {
    visibility: hidden ;
    font-size: 0.875rem;
    color: var(--danger);
}

.right-sidebar-content .note-status-saved {
    visibility: hidden ;
    font-size: 0.875rem;
    color: var(--success);
}

.note-form-actions {
    margin-top: 10px;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav a {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.sidebar-nav a.active {
    background: var(--primary);
    color: white;
}

.sidebar-nav .btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    width: 100%;
    text-align: left;
}

.sidebar-nav .btn-link:hover {
    background: var(--primary);
    color: white;
}

.sidebar-footer {
    text-align: center;
}

.content {
    flex: 1;
}

.app-content {
    padding: 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;  
}

/* Collapsible sidebar support */
.sidebar {
    transition: width 0.2s ease;
}

/* Support both html.sidebar-collapsed (initial) and .app-layout.sidebar-collapsed (after JS) */
.app-layout.sidebar-collapsed .sidebar,
html.sidebar-collapsed .app-layout .sidebar {
    width: 64px;
    overflow: hidden;
}

.app-layout.sidebar-collapsed .sidebar h3,
html.sidebar-collapsed .app-layout .sidebar h3 {
    display: none;
}

.app-layout.sidebar-collapsed .sidebar-nav a,
html.sidebar-collapsed .app-layout .sidebar-nav a {
    padding-left: 0.25rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    font-size: 0.95rem;
    text-align: center;
}

/* Nav icon + label layout */
.sidebar-nav a {
    display: flex;
    align-items: center;
}

.sidebar-nav a .nav-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    /* let the icon color inherit from the link so active state can change it */
    color: inherit;
}

.sidebar-nav a .nav-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    /* ensure strokes are visible and follow currentColor */
    stroke: currentColor;
    fill: none;
}

/* Active link: icon should be white to contrast with primary background */
.sidebar-nav a.active,
.sidebar-nav a.active:focus,
.sidebar-nav a.active:hover {
    color: white; /* anchors set color; svg inherits via nav-icon */
}
.sidebar-nav a.active .nav-icon svg,
.sidebar-nav a.active .nav-icon svg * {
    stroke: currentColor;
    fill: none; 
}

.sidebar-nav a .nav-label {
    display: inline-block;
}

/* When collapsed: hide labels, center icons */
.app-layout.sidebar-collapsed .sidebar-nav a .nav-label,
html.sidebar-collapsed .app-layout .sidebar-nav a .nav-label {
    display: none;
}

.app-layout.sidebar-collapsed .sidebar-nav a .nav-icon,
html.sidebar-collapsed .app-layout .sidebar-nav a .nav-icon {
    margin-right: 0;
    width: 24px; /* keep icon a readable size when collapsed */
    justify-content: center;
}


/* Sidebar toggle placement and responsive visibility */
/* container for sidebar top row: title + toggle */
.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.5rem 0 0.5rem 0;
}

.sidebar-top h3 {
    margin-left: 0.5rem;
}

/* default: hide both toggles; media queries below will show the correct one */
#sidebar-toggle-top,
#sidebar-toggle-side {
    display: none;
}

.sidebar .sidebar-toggle,
.right-sidebar .sidebar-toggle {
    width: 27px;
    height: 27px;
    margin: 0;
}

/* Small screens: show the topbar toggle, hide sidebar toggle */
@media (max-width: 767px) {
    #sidebar-toggle-top {
        display: inline-flex;
    }
    #sidebar-toggle-side {
        display: none;
    }
}

/* Medium+ screens: show the sidebar toggle, hide topbar toggle */
@media (min-width: 768px) {
    #sidebar-toggle-top {
        display: none;
    }
    #sidebar-toggle-side {
        display: inline-flex;
    }
}

/* Mobile: hide sidebar by default; open it as an overlay when .sidebar-open is present */
@media (max-width: 767px) {
    .app-layout .sidebar {
        display: none; /* hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 250px;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        z-index: 1001;
        background: white;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        padding: 1.5rem;
    }

    .app-layout.sidebar-open .sidebar {
        display: flex;
        transform: translateX(0);
    }

    /* backdrop created/removed by JS when sidebar-open toggles */
    #sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1000;
    }
}

/* Tables */
.page-header {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.table-container {
    background: white;
    border-radius: 8px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--light);
}

.table th {
    padding: 0.5rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.table td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border);
}

.table tbody tr:hover {
    background: var(--light);
}

.table tfoot {
    background: var(--light);
}

.table tfoot td {
    padding: 0;
    border-bottom: none;
}

.table tfoot .pagination-container {
    border-top: 1px solid var(--border);
}

.table .col-name {
    width: 300px;
}

.table .col-title {
    width: 300px;
}

.table .col-code {
    width: 140px;
}

.table .col-actions {
    width: 220px;
}

td.actions {
    gap: 0.5rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--secondary);
    color: white;
}

.badge-success {
    background: var(--success);
}

.badge-danger {
    background: var(--danger);
}

.badge-warning {
    background: var(--warning);
}

.badge-info {
    background: var(--info);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Flash Messages */
.flash {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    border-radius: 6px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    min-width: 300px;
    max-width: 600px;
    animation: flashFadeOut 5s ease-in-out forwards;
}

@keyframes flashFadeOut {
    0% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.flash-success {
    background: #d1fae5;
    color: #065f46;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Modal */
/* Modal container - invisible until htmx injects content */
.modal {
    display: none;
}

/* When modal has content, show it as overlay */
.modal:not(:empty) {
    display: block;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 0;
    border-radius: 8px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
}

.modal-content .form {
    padding: 1.5rem;
    max-width: none;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin: 0.5rem 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.modal-sm .modal-content {
    max-width: 400px;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-page h1 {
    font-size: 4rem;
    color: var(--danger);
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--secondary);
    font-style: italic;
}

/* htmx Loading Indicators */
.htmx-request {
    opacity: 0.6;
    pointer-events: none;
}

.htmx-swapping {
    opacity: 0;
}

.htmx-settling {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Posts Styles */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.post-card {
    padding: 1.5rem;
}

.post-card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--secondary);
}

.post-meta .author {
    font-weight: 500;
}

.post-body {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.post-actions {
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

.pagination-info {
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.page-number:hover {
    background: var(--light);
    border-color: var(--primary);
    color: var(--primary);
}

.page-number.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
}

.pagination-size {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-size label {
    color: var(--secondary);
    font-size: 0.875rem;
}

.pagination-size select {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
}

.pagination-size select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Old pagination style (kept for compatibility) */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
}



/* Language Selector Styles */
.language-select {
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
}

.language-select:hover {
    background: var(--light);
    border-color: var(--primary);
}

.language-select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
}

@media (max-width: 767px) {
    .lang-text {
        display: none;
    }
}

/* Responsive adjustments for language selector */
@media (max-width: 767px) {
    .language-select {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* HTMX Loading Indicators */
.htmx-indicator {
    display: none;
    color: var(--primary);
    font-size: 0.875rem;
    font-style: italic;
}

.htmx-request .htmx-indicator {
    display: inline;
}

.htmx-request.htmx-indicator {
    display: inline;
}

/* View Page Styles */
.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-icon {
    font-size: 2rem;
    background: var(--primary-light);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.page-header-actions {
    display: flex;
    gap: 0.5rem;
}

.view-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
}

@media (max-width:1410px) {
    .view-layout {
        display: block;
    }
}

@media (max-width: 768px) {
    .view-layout {
        display: block;
    }
}
.view-section {
    min-width:49%;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.view-section-header {
    background: #f8f9fa;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

.view-section-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.view-section-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-section-body {
    padding: 1.5rem;
}

.view-field-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.view-field-row:last-child {
    margin-bottom: 0;
}

.view-field {
    display: flex;
    flex-direction: column;
}

.view-field-full {
    grid-column: 1 / -1;
}

.view-field-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.view-field-value {
    font-size: 0.9375rem;
    color: var(--text);
    min-height: 1.5rem;
}

.badge-info {
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
}

a.no-modified-link {
    color: inherit;
    text-decoration: none;
}
