/*
   css/main.css - PART 1
   ======================================
   Main CSS - Home Inventory Project
   Cleaned & Reorganized Version
   ======================================
   
   Table of Contents:
   1. CSS Custom Properties (Variables)
   2. Reset & Base Styles
   3. Layout & Grid System
   4. Typography
   5. Forms & Inputs
   6. Buttons & Interactive Elements
   7. Tables & Data Display
   8. Navigation & Menus
   Table of Contents:
   9. Messages & Alerts
   10. Component Styles
   11. Media Galleries (Images & Attachments)
   12. Autocomplete Styles (jQuery UI)
   13. Utility Classes
   14. Animations
   15. Responsive Design
   ====================================== */

/* ====================================== 
   1. CSS Custom Properties (Variables)
   ====================================== */
:root {
    /* Colors */
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    
    /* Background colors */
    --bg-primary: #f4f4f4;
    --bg-secondary: #b3b3b3;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    
    /* Border colors */
    --border-color: #dee2e6;
    --border-light: #ddd;
    
    /* Text colors */
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #888;
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 25px;
    
    /* Font sizes */
    --font-size-sm: 0.9em;
    --font-size-base: 1rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.25rem;
    
    /* Borders and radiuses */
    --border-radius: 4px;
    --border-radius-lg: 8px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.1);
    
    /* Layout widths */
    --sidebar-width: 250px;
    --max-width-sm: 600px;
    --max-width-md: 800px;
    --max-width-lg: 1200px;
    
    /* Navigation indentation */
    --nav-indent-spacing: 5px;
}

/* ====================================== 
   2. Reset & Base Styles
   ====================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body { 
    height: 100%; 
    margin: 0; 
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

body {
    background-color: var(--bg-primary);
    background-image: url('../images/LogoFadedTransparent.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: 45% auto;
}

img, table {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

/* ====================================== 
   3. Layout & Grid System
   ====================================== */
/* Main Layout */
#container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

#banner {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) var(--spacing-lg);
    width: 100%;
    z-index: 100;
}

#content-wrapper {
    display: flex;
    flex: 1;
    min-height: 0;
    max-width: 100%;
}

#sidebar {
    width: var(--sidebar-width);
    background-color: var(--light-color);
    border-right: 1px solid var(--border-color);
    padding: var(--spacing-md);
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

#main-content {
    flex: 1;
    padding: var(--spacing-lg);
    overflow-y: auto;
    background-color: transparent;
    max-width: calc(100% - 500px);
}

#content-container {
    max-width: 100%;
    margin: 0 auto;
    word-wrap: break-word;
}

#notifications {
    width: var(--sidebar-width);
    background-color: var(--light-color);
    border-left: 1px solid var(--border-color);
    padding: var(--spacing-md);
    overflow-y: auto;
    box-shadow: -2px 0 5px rgba(0,0,0,0.05);
}

#footer {
    background-color: var(--light-color);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-sm) var(--spacing-lg);
    text-align: center;
    width: 100%;
}

/* Column Layouts */
.detail-container {
    display: flex;
    width: 100%;
    gap: var(--spacing-lg);
    max-width: 100%;
}

.left-column, 
.right-column {
    flex: 1;
    border: 1px solid var(--border-light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    background-color: var(--bg-light);
    box-shadow: var(--shadow-md);
    width: 50%;
    max-width: 50%;
}

/* Container Variations */
.container {
    display: flex;
    justify-content: space-between;
    padding-top: 50px;
}

.form-container {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    width: 100%;
    margin-bottom: var(--spacing-lg);
}

.form-container-no-display {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    width: 100%;
    margin-bottom: var(--spacing-lg);
    display: none;
}

.form-container-no-margin {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    width: 100%;
    margin-bottom: 0;
}

/* Separators */
.divider, 
.separator {
    border-top: 1px solid var(--border-light);
    margin: var(--spacing-md) 0;
}

/* ====================================== 
   4. Typography
   ====================================== */
.fade-in-text {
    font-size: 50px;
    animation: fadeIn 5s;
}

.required-field,
sup {
    color: var(--danger-color);
}

.note {
    margin-top: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.note-no-display {
    margin-top: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    display: none;
}

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

.redMessage {
    color: var(--danger-color);
}

/* Text alignment utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Text color utilities */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }
.text-muted { color: var(--text-muted); }

.font-weight-normal { font-weight: normal; }
.font-weight-bold { font-weight: bold; }

/* ====================================== 
   5. Forms & Inputs
   ====================================== */
form {
    margin: 0 auto;
    width: 75%;
    padding: 1em;
    padding-top: 50px;
    border: 1px solid #CCC;
    border-radius: 1em;
    background-color: var(--bg-white);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group-no-display {
    margin-bottom: var(--spacing-md);
    display: none;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: bold;
}

.form-group small {
    display: block;
    margin-top: var(--spacing-xs);
    color: var(--text-secondary);
}

.form-header {
    font-size: var(--font-size-xl);
    font-weight: bold;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* Input Styles */
.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    max-width: 300px;
    margin: var(--spacing-sm) 0;
}

.form-control-with-flex {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    max-width: 300px;
    margin: var(--spacing-sm) 0;
    flex: 1;
}

.reports-form-control {
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    max-width: 300px;
    margin: var(--spacing-sm) 0;
    height: 400px;
    font-family: monospace;
    width: 100%;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
}

.form-group input[readonly] {
    background-color: #f0f0f0;
}

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

/* Checkbox styling */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.checkbox-group input[type="checkbox"] {
    margin-right: var(--spacing-sm);
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.form-group input[type="checkbox"] {
    margin: 0;
    width: auto;
    vertical-align: middle;
    display: inline-block;
}

.form-group label[for="remember"] {
    display: inline-block;
    margin-bottom: 0;
    vertical-align: middle;
    margin-left: var(--spacing-xs);
    font-weight: normal;
}

/* Special form layouts */
.detailSubForm {
    display: none !important;
}

.userAdminForm {
    display: block !important;
}

/* ====================================== 
   6. Buttons & Interactive Elements
   ====================================== */
.btn {
    display: inline-block;
    background-color: #4a6fdc;
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background-color: #0069d9;
    text-decoration: none;
    color: white;
}

/* Button variants */
.btn-primary {
    background-color: var(--primary-color);
}

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

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

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

.btn-submit:hover,
.submit-button:hover {
    background-color: #45a049;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
    display: block;
    width: 100%;
    margin-bottom: var(--spacing-sm);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
    width: 100%;
    margin-bottom: var(--spacing-sm);
}

.btn-info {
    background-color: var(--info-color);
    color: white;
    display: block;
    width: 100%;
    margin-bottom: var(--spacing-sm);
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #8c8c8c !important;
}

/* Button sizes */
.btn-sm {
    font-size: 12px;
    padding: 3px 8px;
}

/* Button groups */
.btn-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.btn-group .btn-submit {
    flex: 1;
}

/* Submit inputs */
input[type="submit"] {
    padding: 0.5em;
    background-color: #0075ff;
    color: white;
    border: none;
    cursor: pointer;
    width: 50%;
    border-radius: var(--border-radius);
}

input[type="submit"]:hover {
    background-color: #051f48;
}

.form-group input[type="submit"] {
    background-color: var(--success-color);
    color: white;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm) var(--spacing-md);
    width: auto;
}

.form-group input[type="submit"]:hover {
    background-color: #45a049;
}

/* Special button containers */
.subFormButton {
    margin-top: var(--spacing-md);
}

.subFormButton .btn {
    margin-bottom: 0 !important;
    height: auto;
    padding: var(--spacing-sm) var(--spacing-md);
    line-height: 1.4;
    min-height: 40px;
}

.subFormButton .btn-danger {
    margin-bottom: 0 !important;
    width: auto;
}

/* Dropdown Button */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: var(--primary-color);
    color: var(--bg-primary);
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropbtn:hover, .dropbtn:focus {
    background-color: var(--primary-dark);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.show {
    display: block;
}

.admin-btn {
    display: inline;
    padding: 0;
    border: none;
    margin: 0;
    width: auto;
}

/* ====================================== 
   7. Tables & Data Display
   ====================================== */
table {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid black;
}

th, td {
    border: 1px solid black;
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--border-light);
}

tr:nth-child(even) {
    background-color: var(--bg-secondary);
}

tr:hover {
    background-color: #707070;
}

/* Detail tables */
.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table th {
    text-align: left;
    padding: 8px;
    background-color: #eee;
    width: 30%;
}

.detail-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

/* Report tables */
.report-table,
.roadmap-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
}

.report-table th,
.report-table td,
.roadmap-table th,
.roadmap-table td {
    padding: 8px;
    border: 1px solid var(--border-light);
    text-align: left;
}

.report-table th,
.roadmap-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.roadmap-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

.roadmap-table tr:nth-child(odd) {
    background-color: var(--bg-white);
}

.roadmap-table tr:hover {
    background-color: #eaf4ff;
}

/* Table cell types */
.priority-cell {
    width: 80px;
    text-align: center;
}

.date-cell {
    width: 100px;
    text-align: center;
}

.action-cell {
    width: 80px;
    text-align: center;
}

/* ====================================== 
   8. Navigation & Menus
   ====================================== */
.navigation-menu {
    background-color: var(--light-color);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.navigation-menu h3 {
    color: var(--text-primary);
    margin-top: 0;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
    margin-bottom: var(--spacing-sm);
    font-size: 16px;
}

.nav-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
    margin: 2px 0;
    list-style-type: none;
    font-size: 14px;
    line-height: 1.2;
}

.nav-item-wrapper {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.nav-item a, .nav-link {
    display: block;
    padding: 2px 0;
    color: #444;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.2;
    text-overflow: ellipsis;
    overflow: hidden;
}

.nav-item a:hover, .nav-link:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.nav-item a.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* Navigation controls */
.nav-controls {
    padding-top: 10px;
    text-align: center;
}

.nav-btn {
    margin-right: 5px;
}

.nav-actions {
    margin-top: var(--spacing-lg);
    text-align: center;
}

/* Navigation icons */
.toggle-icon {
    width: 10px !important;
    height: 10px !important;
    margin-right: 3px;
    cursor: pointer;
    flex-shrink: 0;
    object-fit: contain;
    vertical-align: middle;
}

.toggle-icon:hover {
    opacity: 0.8;
}

.toggle-spacer {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 3px;
}

/* Dynamic navigation indentation */
.nav-item[data-level="0"] { padding-left: calc(var(--nav-indent-spacing) * 0); }
.nav-item[data-level="1"] { padding-left: calc(var(--nav-indent-spacing) * 1); }
.nav-item[data-level="2"] { padding-left: calc(var(--nav-indent-spacing) * 2); }
.nav-item[data-level="3"] { padding-left: calc(var(--nav-indent-spacing) * 3); }
.nav-item[data-level="4"] { padding-left: calc(var(--nav-indent-spacing) * 4); }
.nav-item[data-level="5"] { padding-left: calc(var(--nav-indent-spacing) * 5); }
.nav-item[data-level="6"] { padding-left: calc(var(--nav-indent-spacing) * 6); }
.nav-item[data-level="7"] { padding-left: calc(var(--nav-indent-spacing) * 7); }
.nav-item[data-level="8"] { padding-left: calc(var(--nav-indent-spacing) * 8); }
.nav-item[data-level="9"] { padding-left: calc(var(--nav-indent-spacing) * 9); }
.nav-item[data-level="10"] { padding-left: calc(var(--nav-indent-spacing) * 10); }

/* Legacy hierarchy levels - keeping for backward compatibility */
.nav-item.level-0 .nav-item-wrapper { 
    padding-left: 0;
    font-weight: bold; 
}
.nav-item.level-1 .nav-item-wrapper { padding-left: 15px; }
.nav-item.level-2 .nav-item-wrapper { padding-left: 30px; }
.nav-item.level-3 .nav-item-wrapper { padding-left: 45px; }
.nav-item.level-4 .nav-item-wrapper { padding-left: 60px; }

.nav-item.parent > .nav-item-wrapper > a {
    font-weight: bold;
}


/* ====================================== 
   9. Messages & Alerts
   ====================================== */
/* Error Messages */
.error-message {
    color: var(--danger-color);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.error,
.ToDoError,
.addressDetailError,
.addressDetailErrorSmall {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: var(--spacing-sm);
    margin: var(--spacing-sm) 0;
    border-radius: var(--border-radius);
}

.ToDoError {
    margin: var(--spacing-lg);
    background-color: #ffeeee;
    border: 1px solid #ffcccc;
}

.addressDetailError {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) 0;
}

.addressDetailMessage {
    background-color: #d4edda;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius);
}

.addressDetailWarning {
    background-color: #fff3cd;
    padding: var(--spacing-sm);
    margin: var(--spacing-sm) 0;
    border-radius: var(--border-radius);
}

/* Alert system */
.alert-container {
    width: 100%;
    margin-bottom: var(--spacing-lg);
    min-height: 60px;
}

.alert-container-slim {
    width: 100%;
    margin-top: var(--spacing-lg);
    padding: 0 var(--spacing-md);
}

.alert {
    padding: 12px var(--spacing-md);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    width: 100%;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success,
.success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.message {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius);
}

/* Special message types */
.global-error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    text-align: center;
    width: 50%;
    margin: 0 auto var(--spacing-lg) auto;
    position: relative;
    top: -20px;
    box-shadow: var(--shadow-md);
    font-weight: bold;
}

.error-banner {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
    margin: 0 auto var(--spacing-md) auto;
    text-align: center;
    font-weight: bold;
    width: 90%;
    max-width: 100%;
}

.not-implemented {
    padding: var(--spacing-sm);
    background-color: #fffbcc;
    border: 1px solid #e6db55;
    border-radius: var(--border-radius);
    text-align: center;
    margin: var(--spacing-md) 0;
}

.no-items {
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--text-secondary);
}

/* Dashboard messages */
#message-container,
#error-container {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    font-weight: bold;
}

#message-container {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#error-container {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.coming-soon-message {
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
}

.coming-soon-message strong {
    color: var(--primary-color);
}

/* ====================================== 
   10. Component Styles
   ====================================== */

/* Banner Components */
.banner-container {
    display: flex;
    background: var(--bg-secondary);
    width: 100%;
    height: 150px;
    align-items: center;
}

.banner-left {
    width: 200px;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-right {
    width: 300px;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: var(--spacing-xs);
    gap: 0;
}

.banner-center {
    flex: 1;
    background: var(--bg-secondary);
    height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.banner-right a {
    color: #333;
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-xs);
    transition: background-color 0.2s ease;
    border-radius: var(--border-radius);
    white-space: nowrap;
}

.banner-right a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: underline;
}

.banner-contact {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

.banner-contact img {
    transition: opacity 0.2s ease;
}

.banner-contact img:hover {
    opacity: 0.8;
}

.banner-nav,
.banner-nav-tight {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.banner-nav {
    gap: 2px;
}

.banner-nav ul,
.banner-nav-tight ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.banner-nav ul {
    gap: 2px;
}

.banner-nav li,
.banner-nav-tight li {
    margin: 0;
    padding: 0;
}

.banner-nav li {
    line-height: 1;
}

.banner-nav a,
.banner-nav-tight a {
    color: #333;
    text-decoration: none;
    padding: 4px var(--spacing-sm);
    transition: background-color 0.2s ease;
    border-radius: var(--border-radius);
    display: block;
}

.banner-nav a {
    line-height: 1.2;
}

.banner-nav-tight a {
    padding: 2px var(--spacing-sm);
    line-height: 1.1;
}

.banner-nav a:hover,
.banner-nav-tight a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: underline;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: space-around;
    width: 50%;
    margin: 0 auto;
    padding: var(--spacing-sm);
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-form,
.create-form {
    width: 50%;
    padding: var(--spacing-sm);
    background-color: var(--bg-white);
    border-radius: 1px;
}

.login-form form,
.create-form form {
    padding-top: 30px;
    position: relative;
}

/* Admin Components */
.admin-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: var(--spacing-lg);
    width: 100%;
    padding: var(--spacing-md);
}

.admin-dashboard {
    background-color: #f0f7ff;
    border: 1px solid #b8daff;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.admin-dashboard h3 {
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid #b8daff;
}

.admin-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.admin-stat-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--danger-color);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.admin-quick-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: flex-end;
    align-items: center;
}

.admin-link {
    background-color: var(--bg-white);
    color: var(--primary-dark);
    padding: 8px var(--spacing-md);
    border-radius: var(--border-radius);
    text-decoration: none;
    border: 1px solid #b8daff;
    transition: all 0.2s;
}

.admin-link:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* Specialized Containers */
.containerUserCreate {
    max-width: var(--max-width-sm);
    margin: 50px auto;
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.containerAccountDetails {
    max-width: var(--max-width-md);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.roadmap-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.resetcontainer {
    display: flex;
    width: 45%;
    margin: 0 auto;
    justify-content: space-between;
    padding-top: 50px;
}

/* Section Components */
.section-header,
.section-headerAdminDashboard {
    cursor: pointer;
    position: relative;
    padding: var(--spacing-sm);
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
}

.section-header:hover,
.section-headerAdminDashboard:hover {
    background-color: #e9ecef;
}

.section-headerAdminDashboard h3 {
    margin: 0;
    padding-right: 25px;
}

.section-content {
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
}

.section-content-no-display {
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    display: none;
    background-color: var(--light-color);
}

/* Entity Components */
.entity-detail {
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.detail-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.detail-section {
    margin-bottom: var(--spacing-xl);
}

.entity-list {
    list-style: none;
    padding: 0;
}

.entity-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.entity-link {
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
}

.entity-link:hover {
    text-decoration: underline;
}

.entityNameEdit {
    display: flex;
    gap: var(--spacing-sm);
}

/* Arrow icons */
.arrow-icon {
    position: absolute;
    right: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
}

/* Info Groups */
.info-group {
    margin-bottom: 12px;
}

.info-group strong {
    display: inline-block;
    width: 140px;
}

/* Attribute Components */
.attributeList {
    list-style: none;
    padding: 0;
}

.attributeItem {
    border: 1px solid var(--border-light);
    padding: 8px;
    margin-bottom: var(--spacing-xs);
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.attributeItem:hover {
    background-color: var(--light-color);
}

.attributeListName {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.attribute-sort-controls {
    display: flex;
    gap: var(--spacing-xs);
    margin-left: var(--spacing-sm);
}

.sort-arrow {
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sort-arrow:hover {
    opacity: 1;
}

.sort-arrow:active {
    transform: scale(0.95);
}

/* Attribute Form Components */
.attribute-form-container {
    max-width: var(--max-width-md);
    margin: 0 auto;
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.attribute-form-layout {
    display: flex;
    gap: var(--spacing-lg);
}

.attribute-form-main {
    flex: 3;
}

.attribute-form-main form {
    width: 100%;
    padding: 0;
    border: none;
    background-color: transparent;
}

.attribute-list-container {
    flex: 2;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
    max-height: 300px;
}

.available-attributes {
    max-height: 250px;
    overflow-y: auto;
    padding: var(--spacing-xs);
}

.available-attribute-item {
    padding: var(--spacing-xs) var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    background-color: #f0f7ff;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s;
}

.available-attribute-item:hover {
    background-color: #d0e3ff;
}

.attribute-note {
    color: var(--text-secondary);
    font-style: italic;
    font-size: var(--font-size-sm);
    text-align: center;
}

/* Edit Attribute Buttons */
.edit-attrib-button {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.edit-attrib-button-primary {
    background-color: var(--primary-color);
    flex: 1;
}

.edit-attrib-button-danger {
    background-color: var(--danger-color);
    color: white;
    width: 100%;
    margin-bottom: var(--spacing-sm);
    flex: 1;
}

.edit-attrib-cencel-button {
    background-color: #6c757d;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

/* Home Page Components */
.home-container {
    width: 100%;
    max-width: var(--max-width-lg);
    margin: 0 auto;
}

.home-layout {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.home-column {
    flex: 1;
    min-width: 300px;
}

.left-status,
.right-faq {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
}

.user-status-panel h3,
.faq-container h3 {
    color: var(--text-primary);
    border-bottom: 1px solid #eee;
    padding-bottom: var(--spacing-sm);
    margin-top: 0;
}

.user-welcome {
    margin-bottom: var(--spacing-lg);
}

.status-item,
.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.status-label {
    font-weight: bold;
    color: var(--text-secondary);
}

.inventory-summary,
.quick-actions {
    margin-top: var(--spacing-lg);
}

.quick-actions .btn {
    display: block;
    width: 100%;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

/* FAQ Components */
.faq-item {
    margin-bottom: var(--spacing-sm);
}

.faq-question {
    cursor: pointer;
    padding: var(--spacing-sm);
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 0;
    position: relative;
}

.faq-question h4 {
    margin: 0;
    padding-right: var(--spacing-lg);
}

.faq-answer {
    display: none;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    background-color: var(--bg-white);
}

.svg-container {
    text-align: center;
    margin: var(--spacing-md) 0;
}

/* Form Components */
.contact-form {
    width: 90%;
    max-width: var(--max-width-md);
    margin: var(--spacing-lg) auto;
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
}

.add-task-form {
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) 0;
    border: 1px solid var(--border-light);
}

/* Filter Components */
.filter-section {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: #f0f7ff;
    border: 1px solid #d0e3ff;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
}

.filter-section h4 {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    font-size: 16px;
    color: var(--primary-dark);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.filter-option {
    display: flex;
    align-items: center;
    margin-right: var(--spacing-sm);
}

.filter-option label {
    margin-left: var(--spacing-xs);
    font-weight: normal;
}

/* Report Components */
.report-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.report-left-column {
    flex: 1;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.report-bottom-box-span {
    width: 100%;
    border: 1px solid #ddd;
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.report-preview {
    overflow-x: auto;
    width: 100%;
}

.report-table {
    min-width: 800px;
}

.report-actions {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

/* Layout Images */
.layout-image {
    width: 100%;
    max-width: 700px;
}

/* ====================================== 
   11. Media Galleries (Images & Attachments)
   ====================================== */

/* Shared Gallery Styles */
.loading {
    text-align: center;
    padding: var(--spacing-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 18px;
    color: var(--text-secondary);
}

.loading:after {
    content: "";
    width: 30px;
    height: 30px;
    margin-left: var(--spacing-md);
    border: 6px solid var(--border-light);
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Image Gallery Styles */
.image-gallery-container {
    margin: 20px 0;
    width: 100%;
    clear: both;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.image-gallery-container h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-primary);
}

.image-gallery-layout {
    display: flex;
    gap: 20px;
    width: 100%;
}

.image-gallery-upload {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 15px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    align-self: flex-start;
    position: sticky;
    top: 20px;
}

.image-gallery-content {
    flex: 2;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 15px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow-y: auto;
    max-height: 550px;
}

/* Image Upload Form */
.image-upload-form {
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.image-upload-form form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
}

.image-upload-input {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-upload-description {
    flex: 3;
}

.image-upload-form button {
    flex: 1;
    padding: 8px 15px;
}

#selected-file-name {
    color: var(--text-secondary);
    margin-left: 10px;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* File Input Styling */
#image-file {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

label[for="image-file"] {
    cursor: pointer;
    display: inline-block;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: normal;
    transition: all 0.3s ease;
}

label[for="image-file"]:hover {
    background-color: #0069d9;
}

#image-file:focus + label {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Progress Bar */
.progress {
    height: 20px;
    margin: 10px 0;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 20px;
    transition: width 0.3s ease;
}

/* Image Gallery Display */
.gallery-outer-container {
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-container,
.image-carousel {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
}

.gallery-item,
.image-card {
    width: 150px;
    flex: 0 0 150px;
    margin-bottom: 15px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 5px;
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover,
.image-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-image,
.image-thumbnail {
    height: 150px;
    width: 100%;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8f8f8;
}

.gallery-image img.thumbnail {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.gallery-image:hover img.thumbnail,
.image-thumbnail:hover {
    transform: scale(1.05);
}

.gallery-controls,
.image-actions {
    display: flex;
    justify-content: space-around;
    padding: 8px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    border-radius: 0 0 4px 4px;
}

.image-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
}

.view-image {
    color: #007bff;
}

.delete-image {
    color: #dc3545;
}

.image-actions button:hover {
    background-color: rgba(0,0,0,0.05);
}

.gallery-description,
.image-description {
    font-size: 0.85em;
    color: var(--text-secondary);
    text-align: center;
    padding: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-images {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 150px;
    background-color: #f8f8f8;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-style: italic;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    padding-top: 60px;
}

.modal-content,
.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    animation-name: zoom;
    animation-duration: 0.6s;
}

.image-modal-content {
    position: relative;
    padding: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.image-modal-content .close-modal {
    top: -30px;
}

#modal-caption {
    margin: auto;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.full-size-image {
    max-width: 100%;
    max-height: 90vh;
    border: 2px solid #fff;
    border-radius: 4px;
}

/* Attachment Gallery Styles */
.file-attachments-container {
    margin: 20px 0;
    width: 100%;
    clear: both;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.notification-settings-container {
    margin: 20px 0;
    width: 100%;
    clear: both;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

/* New Attachment Layout */
.attachment-layout {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
}

.attachment-upload {
    flex: 2;
    min-width: 250px;
    max-width: 350px;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 15px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    align-self: flex-start;
}

.attachment-upload h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 16px;
}

.attachment-content {
    flex: 1;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 15px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow-y: auto;
    max-height: 400px;
}

.attachment-content h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 16px;
}

.attachment-status {
    width: 100%;
    margin-top: 15px;
    padding: 0;
}

/* Legacy Attachment Styles (for backward compatibility) */
.attachment-upload-container {
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.file-input-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#selected-attachment-name {
    margin-left: 10px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* Attachment Table */
.attachment-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.attachment-table th,
.attachment-table td {
    padding: 10px;
    border: 1px solid var(--border-light);
    text-align: left;
}

.attachment-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.attachment-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

.attachment-table tr:hover {
    background-color: #eaf4ff;
}

/* Attachment cells */
.attachment-name {
    display: flex;
    align-items: center;
}

.attachment-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.attachment-description {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-top: 5px;
}

.attachment-size,
.attachment-date {
    white-space: nowrap;
}

.attachment-actions {
    white-space: nowrap;
    text-align: center;
}

.attachment-actions .btn {
    margin: 0 2px;
}

.no-attachments {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    background-color: var(--bg-light);
    border: 1px dashed var(--border-light);
    border-radius: var(--border-radius);
}

/* Debug info styles */
.debug-info {
    font-family: monospace;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.debug-info button {
    margin: 5px;
    padding: 2px 5px;
    font-size: 11px;
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
}

.debug-info button:hover {
    background: #e0e0e0;
}

#debug-response {
    margin-top: 5px;
    padding: 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    max-height: 150px;
    overflow-y: auto;
}

/* Status Messages for Galleries */
#upload-messages,
#uploadStatus,
#uploadAttachmentStatus {
    margin: 10px 0;
}

/* Preview Components */
#imagePreview {
    text-align: center;
    margin: 15px 0;
}

.img-preview {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#imageGallery,
#attachmentGallery {
    margin-top: 20px;
}

/* ====================================== 
   12. Autocomplete Styles (jQuery UI)
   ====================================== */
.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    z-index: 9999;
    padding: var(--spacing-xs) 0;
}

.ui-autocomplete .ui-menu-item {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 14px;
}

.ui-autocomplete .ui-menu-item:last-child {
    border-bottom: none;
}

.ui-autocomplete .ui-menu-item:hover,
.ui-autocomplete .ui-menu-item.ui-state-focus,
.ui-autocomplete .ui-menu-item.ui-state-active {
    background-color: #f0f7ff;
    color: var(--primary-dark);
    border: none;
    margin: 0;
}

.ui-helper-hidden-accessible {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

input.ui-autocomplete-input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.ui-autocomplete-loading {
    background: white url('../images/ui-anim_basic_16x16.gif') right center no-repeat;
}

/* ====================================== 
   13. Utility Classes
   ====================================== */

/* Display utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Spacing utilities */
.m-0 { margin: 0; }
.m-1 { margin: var(--spacing-xs); }
.m-2 { margin: var(--spacing-sm); }
.m-3 { margin: var(--spacing-md); }
.m-4 { margin: var(--spacing-lg); }
.m-5 { margin: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

/* Margin/padding directional */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

/* Flexbox utilities */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

/* Width utilities */
.w-25 { width: 25%; }
.w-50 { width: 50%; }
.w-75 { width: 75%; }
.w-100 { width: 100%; }
.mw-100 { max-width: 100%; }

/* ====================================== 
   14. Animations
   ====================================== */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes zoom {
    from { transform: scale(0) }
    to { transform: scale(1) }
}

/* ====================================== 
   15. Responsive Design
   ====================================== */

/* Tablets and smaller laptops */
@media (max-width: 992px) {
    #content-wrapper {
        flex-direction: column;
    }
    
    #sidebar, 
    #notifications {
        width: 100%;
        border: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    #notifications {
        order: 3;
        border-top: 1px solid var(--border-color);
    }
    
    #main-content {
        order: 2;
        max-width: 100%;
    }
    
    .left-column, 
    .right-column {
        flex: 0 0 50%;
        width: 50%;
        min-width: 50%;
        max-width: 50%;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    :root {
        --spacing-xs: 3px;
        --spacing-sm: 8px;
        --spacing-md: 12px;
        --spacing-lg: 16px;
        --spacing-xl: 20px;
    }

    .home-column {
        flex-basis: 100%;
    }
    
    .admin-form {
        grid-template-columns: 1fr;
    }
    
    .admin-stats, 
    .admin-stat-item, 
    .admin-quick-links {
        flex-basis: 100%;
    }
    
    .admin-quick-links {
        justify-content: center;
        margin-top: var(--spacing-md);
    }
    
    .global-error-message {
        width: 80%;
    }
    
    .detail-container {
        flex-direction: column;
    }
    
    .left-column, 
    .right-column {
        width: 100%;
        max-width: 100%;
    }
    
    .attribute-form-layout {
        flex-direction: column;
    }
    
    /* Gallery responsive adjustments */
    .image-gallery-layout,
    .attachment-layout {
        flex-direction: column;
    }
    
    .image-gallery-upload,
    .attachment-upload {
        max-width: 100%;
        position: static;
    }
    
    .image-gallery-content,
    .attachment-content {
        max-height: 400px;
    }
    
    .gallery-item,
    .image-card {
        min-width: 120px;
        max-width: 30%;
    }
    
    /* Banner responsive */
    .banner-container {
        flex-direction: column;
        height: auto;
        min-height: 150px;
    }
    
    .banner-left,
    .banner-right {
        width: 100%;
        height: 50px;
    }
    
    .banner-center {
        width: 100%;
        flex: 1;
        min-height: 50px;
    }
    
    /* Form responsive */
    .image-upload-form form {
        flex-direction: column;
    }
    
    .image-upload-input,
    .image-upload-description,
    .image-upload-form button {
        flex: none;
        width: 100%;
    }
    
    /* Reduce padding for mobile */
    #main-content {
        padding: var(--spacing-md);
    }
    
    form {
        width: 90%;
        padding: var(--spacing-md);
    }
    
    .container {
        flex-direction: column;
        padding-top: var(--spacing-lg);
    }
    
    .auth-container {
        width: 90%;
        flex-direction: column;
    }
    
    .login-form, 
    .create-form {
        width: 100%;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .auth-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: var(--spacing-lg);
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .filter-options {
        flex-direction: column;
    }
    
    .admin-stats {
        flex-direction: column;
    }
    
    .gallery-item,
    .image-card {
        min-width: 100px;
        max-width: 45%;
    }
}

/* Print styles */
@media print {
    #sidebar,
    #notifications,
    #banner,
    #footer,
    .navigation-menu,
    .btn,
    .admin-dashboard,
    .image-gallery-container,
    .file-attachments-container {
        display: none;
    }
    
    #main-content {
        width: 100%;
        max-width: none;
        padding: 0;
    }
    
    .detail-container {
        flex-direction: column;
    }
    
    .left-column,
    .right-column {
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* missing 25 classes! */
/* About Page Specific Classes */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.about-section {
    margin-bottom: 30px;
}

.developer-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.developer-image {
    flex: 0 0 150px;
}

.dev-photo {
    width: 100%;
    border-radius: 4px;
}

.developer-bio {
    flex: 1;
}

/* Reports Page Specific Classes */
.help-content {
    line-height: 1.6;
}

.help-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.help-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.help-content li {
    margin-bottom: 5px;
}

/* Navigation Enhancement Classes */
.ajax-link {
    /* Inherits from .nav-link - no additional styling needed unless you want different behavior */
}

/* Button Enhancement Classes */
.cancel-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cancel-button:hover {
    background-color: #5a6268;
}

/* Attribute Editing Classes */
.edit-attribute {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.edit-attribute:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Sort Control Classes */
.sort-up,
.sort-down {
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sort-up:hover,
.sort-down:hover {
    opacity: 1;
}

/* Child List Enhancement Classes */
.child-item {
    /* Inherits from .attributeItem - no additional styling needed */
}

.child-list-name {
    /* Inherits from .attributeListName - no additional styling needed */
}

.child-sort-controls {
    display: flex;
    gap: var(--spacing-xs);
    margin-left: var(--spacing-sm);
}

.child-sort-up,
.child-sort-down {
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.child-sort-up:hover,
.child-sort-down:hover {
    opacity: 1;
}

.child-sort-up:active,
.child-sort-down:active {
    transform: scale(0.95);
}

/* Edit Attribute Button Classes (Alternative to existing ones) */
.edit-attrib-button {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.edit-attrib-button-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    flex: 1;
    transition: background-color 0.3s ease;
}

.edit-attrib-button-primary:hover {
    background-color: var(--primary-dark);
}

.edit-attrib-button-danger {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    flex: 1;
    transition: background-color 0.3s ease;
}

.edit-attrib-button-danger:hover {
    background-color: #c82333;
}

.edit-attrib-cancel-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.edit-attrib-cancel-button:hover {
    background-color: #5a6268;
}

/* style scanner styles */
.ssresult { 
        margin-bottom: 20px;
        padding: 15px;
        border: 1px solid #ddd; 
}

.ssfile { 
        font-weight: bold;
        color: #007bff;
}

.ssline {
    color: #666;
    }

.ssstyle {
    background: #f8f9fa;
    padding: 5px;
    margin: 5px 0;
    border-radius: 3px; 
}

.sscontext {
    color: #666;
    font-family: monospace;
    background: #f8f9fa;
    padding: 5px;
}

.sssummary {
    background: #e9ecef;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}


/* ====================================== 
   Notification Settings Styles
   Add these styles to your existing main.css file
   ====================================== */

/* Notification Form Styles - Vertical Layout */
.notifications-list {
    max-height: 500px;
    overflow-y: auto;
}

.notification-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.notification-item:hover {
    box-shadow: var(--shadow-md);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid #eee;
}

.notification-header strong {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.notification-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.notification-status.active {
    background-color: #d4edda;
    color: #155724;
}

.notification-status.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.notification-details {
    margin-bottom: var(--spacing-sm);
}

.notification-detail {
    margin-bottom: 4px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

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

.notification-actions {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: flex-end;
}

.notification-actions .btn {
    padding: 4px 8px;
    font-size: 12px;
}

/* Form field visibility transitions */
.form-group {
    transition: all 0.3s ease;
}

/* Notification settings specific form adjustments */
.form-container .form-group select.form-control {
    max-width: 100%;
}

.form-container .checkbox-group {
    margin-bottom: var(--spacing-md);
}

/* No notifications message */
.no-notifications {
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    background-color: var(--bg-light);
    border: 1px dashed var(--border-light);
    border-radius: var(--border-radius);
}

/* Responsive adjustments for notifications */
@media (max-width: 768px) {
    .notification-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .notification-actions {
        justify-content: flex-start;
        width: 100%;
    }
    
    .notification-actions .btn {
        flex: 1;
        text-align: center;
    }
}

.no-underline {
    text-decoration: none;
  }

  /* User Management Page Styles */
.user-management-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}


/* User Statistics Summary */
.user-stats-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.user-stats-summary .stat-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px 20px;
    text-align: center;
    min-width: 140px;
    flex: 1;
}

.user-stats-summary .stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.user-stats-summary .stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

/* Table Container */
.um-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

/* User Management Table */
.user-management-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.user-management-table thead {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
}

.user-management-table thead th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.user-management-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.user-management-table tbody tr:hover {
    background-color: #f8f9fa;
}

.user-management-table tbody tr.active-user {
    background-color: rgba(40, 167, 69, 0.05);
}

.user-management-table tbody tr.inactive-user {
    background-color: rgba(220, 53, 69, 0.05);
}

.user-management-table tbody td {
    padding: 12px;
    vertical-align: middle;
}

/* Column Widths */
.status-col { width: 100px; }
.id-col { width: 80px; }
.name-col { width: 180px; }
.username-col { width: 150px; }
.date-col { width: 140px; }
.role-col { width: 80px; text-align: center; justify-content: center; align-items: center; }

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge.active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Role Badges */
.role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
}

.role-badge.admin {
    background-color: #dc3545;
    color: white;
}

.role-badge.mod {
    background-color: #007bff;
    color: white;
}

.role-badge.backer {
    background-color: #fd7e14;
    color: white;
}

.role-badge.none {
    background-color: #e9ecef;
    color: #6c757d;
    font-weight: normal;
}

/* Cell Specific Styles */
.id-cell {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #495057;
}

.username-cell {
    font-family: 'Courier New', monospace;
    color: #007bff;
}

.um-date-cell {
    font-size: 0.85rem;
    color: #666;
}

.name-cell {
    font-weight: 500;
    color: #333;
}

/* No Users Message */
.no-users-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-users-message i {
    color: #ccc;
    margin-bottom: 20px;
}

.no-users-message h3 {
    margin: 20px 0 10px 0;
    color: #333;
}

/* Page Actions */
.page-actions {
    text-align: center;
    margin-top: 30px;
}

.um-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.um-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.um-btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .user-management-table {
        font-size: 0.8rem;
    }
    
    .user-management-table thead th,
    .user-management-table tbody td {
        padding: 8px 6px;
    }
}

@media (max-width: 768px) {
    .user-stats-summary {
        justify-content: center;
    }
    
    .user-stats-summary .stat-item {
        min-width: 120px;
        flex: 0 0 auto;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .user-management-table {
        min-width: 800px;
    }
    
    .date-col {
        display: none;
    }
}

@media (max-width: 480px) {
    .user-management-container {
        padding: 10px;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .user-stats-summary {
        gap: 10px;
    }
    
    .user-stats-summary .stat-item {
        padding: 10px 15px;
        min-width: 100px;
    }
}

/* ====================================== 
   16. Notification Pane Styles - Updated
   ====================================== */

/* Main notification pane container */
.notification-pane {
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    overflow-y: auto;
}

/* Notification sections */
.notification-section {
    margin-bottom: var(--spacing-md);
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--light-color);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-header:hover {
    background-color: #e9ecef;
}

.notification-title {
    font-weight: bold;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.notification-count {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: normal;
}

.notification-toggle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.notification-content {
    padding: var(--spacing-xs);
    max-height: 200px;
    overflow-y: auto;
}

/* Compact notification lists */
.notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notification-list-item {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.75rem;
    line-height: 1.3;
}

.notification-list-item:hover {
    background-color: #f8f9fa;
}

.notification-list-item:last-child {
    border-bottom: none;
}

.notification-list-item.unread {
    font-weight: bold;
    background-color: #f0f8ff;
}

.notification-list-item .notification-title {
    font-size: 0.75rem;
    font-weight: normal;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-list-item.unread .notification-title {
    font-weight: bold;
    color: var(--primary-dark);
}

.new-badge {
    background-color: var(--danger-color);
    color: white;
    padding: 1px 3px;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: var(--spacing-xs);
}

/* No notifications state */
.no-notifications {
    text-align: center;
    padding: var(--spacing-md);
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
    margin: 0;
}

/* Notification detail display (inline) */
.notification-detail {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    margin-top: var(--spacing-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.notification-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--light-color);
    border-bottom: 1px solid var(--border-light);
}

.notification-detail-title {
    font-weight: bold;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.notification-detail-close {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.notification-detail-close:hover {
    color: var(--danger-color);
    background-color: rgba(220, 53, 69, 0.1);
}

.notification-detail-body {
    padding: var(--spacing-md);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* System notification specific styles */
.system-notification-actions {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
    text-align: right;
}

.btn-dismiss {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
}

.btn-dismiss:hover {
    background-color: #5a6268;
}

/* Upcoming notification info styles */
.upcoming-notification-info,
.notification-date-info {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    border-left: 4px solid var(--success-color);
    font-size: 0.85rem;
}

.notification-date-info {
    border-left: 4px solid var(--info-color);
}

.upcoming-notification-info p,
.notification-date-info p {
    margin: var(--spacing-xs) 0;
}

.upcoming-notification-info strong,
.notification-date-info strong {
    color: var(--text-primary);
}

/* Responsive notification styles */
@media (max-width: 992px) {
    .notification-pane {
        border-top: 1px solid var(--border-color);
        border-left: none;
    }
}

@media (max-width: 768px) {
    .notification-header {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .notification-content {
        padding: var(--spacing-xs);
        max-height: 150px;
    }
    
    .notification-list-item {
        padding: var(--spacing-xs);
        font-size: 0.7rem;
    }
    
    .notification-list-item .notification-title {
        font-size: 0.65rem;
    }
    
    .notification-list-item .notification-date {
        font-size: 0.6rem;
    }
    
    .notification-detail {
        width: 95%;
        max-height: 80vh;
    }
    
    .notification-detail-body {
        padding: var(--spacing-sm);
        max-height: 200px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .notification-detail {
        width: 98%;
        margin: var(--spacing-xs);
    }
    
    .notification-detail-body {
        max-height: 150px;
    }
}
/* ====================================== 
   Admin Dashboard Enhancements
   Add these styles to your main.css file
   ====================================== */

/* Admin Tools Container */
.admin-tools-container {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--border-color);
}

/* Admin Links Grid */
.admin-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.admin-link-item {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.admin-link-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.admin-link-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin-bottom: var(--spacing-xs);
    transition: color 0.2s ease;
}

.admin-link-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.link-description {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

/* Table Responsive Wrapper */
.table-responsive {
    overflow-x: auto;
    margin-bottom: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* Enhanced Section Headers */
.section-headerAdminDashboard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.section-headerAdminDashboard:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.section-headerAdminDashboard h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Enhanced Arrow Icons */
.section-headerAdminDashboard .arrow-icon {
    position: static;
    transform: none;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    filter: brightness(0.7);
}

.section-headerAdminDashboard .arrow-icon:hover {
    filter: brightness(0.5);
}

/* Notification Management Specific Styles */
.notification-results-container {
    max-height: 400px;
    overflow-y: auto;
}

.notification-row {
    transition: background-color 0.2s ease;
}

.notification-row:hover {
    background-color: #f0f8ff !important;
}

/* Filter Section Enhancements */
.filter-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
    border: 1px solid #bbdefb;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.filter-section h4 {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    border-bottom: 1px solid #e3f2fd;
    padding-bottom: var(--spacing-xs);
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-sm);
}

.filter-option {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-xs);
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
}

.filter-option:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.filter-option input[type="checkbox"] {
    margin-right: var(--spacing-xs);
    width: auto;
}

.filter-option label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-indicator.active,
.status-indicator.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-indicator.inactive,
.status-indicator.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-indicator.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Enhanced Button Groups */
.btn-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.btn-group .btn {
    flex: 1;
    min-width: 120px;
}

/* Form Container Enhancements */
.form-container {
    background: linear-gradient(135deg, var(--bg-white) 0%, #fafafa 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.form-container h3 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

/* Enhanced Welcome Message */
#welcome-message {
    text-align: center;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    color: var(--text-secondary);
}

#welcome-message h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

#welcome-message .note {
    font-size: 1rem;
    margin-top: var(--spacing-sm);
}

/* Search Input Enhancements */
.form-group input.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

/* Datetime Input Styling */
input[type="datetime-local"].form-control {
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.9rem;
}

input[type="datetime-local"].form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Textarea Enhancements */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.5;
}

textarea.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

/* Select Dropdown Enhancements */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 40px;
    appearance: none;
}

select.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

/* Enhanced Section Content */
.section-content {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.section-content.expanded {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* Loading States */
.section-content.loading {
    opacity: 0.7;
    pointer-events: none;
}

.section-content.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-light);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Results Container Enhancements */
#user-results-container,
#attribute-results-container,
#faq-results-container,
#notification-results-container {
    max-height: 300px;
    overflow-y: auto;
    border-radius: var(--border-radius);
    background-color: var(--bg-white);
}

/* Enhanced Table Styling for Admin */
.roadmap-table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.roadmap-table thead {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
}

.roadmap-table thead th {
    color: white;
    font-weight: 600;
    padding: 12px;
    border-bottom: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.roadmap-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-light);
}

.roadmap-table tbody tr:hover {
    background-color: #f0f8ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.roadmap-table tbody td {
    padding: 12px;
    vertical-align: middle;
    border-right: 1px solid #f0f0f0;
}

.roadmap-table tbody td:last-child {
    border-right: none;
}

/* Button Enhancements in Tables */
.roadmap-table .btn-submit {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.roadmap-table .btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #20c997 0%, var(--success-color) 100%);
}

/* Enhanced Error and Success Messages */
.addressDetailMessage,
.addressDetailError {
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.addressDetailMessage {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left-color: var(--success-color);
    color: #155724;
}

.addressDetailError {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left-color: var(--danger-color);
    color: #721c24;
}

/* Form Field Grouping */
.form-row {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Notification Type Toggle Animations */
.form-group {
    transition: all 0.3s ease;
}

.form-group[style*="display:none"] {
    opacity: 0;
    transform: translateY(-10px);
}

.form-group:not([style*="display:none"]) {
    opacity: 1;
    transform: translateY(0);
}

/* Priority Indicators */
.priority-normal { color: var(--info-color); }
.priority-high { color: var(--warning-color); }
.priority-critical { 
    color: var(--danger-color); 
    font-weight: bold;
}

/* Date Range Indicators */
.date-future { color: var(--warning-color); }
.date-active { color: var(--success-color); }
.date-expired { color: var(--danger-color); }

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .admin-tools-container {
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-md);
    }

    .admin-links-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .admin-link-item {
        padding: var(--spacing-sm);
    }

    .section-headerAdminDashboard {
        padding: var(--spacing-sm);
    }

    .section-headerAdminDashboard h3 {
        font-size: 1rem;
    }

    .section-content {
        padding: var(--spacing-md);
    }

    .filter-options {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
        margin-bottom: var(--spacing-xs);
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: var(--spacing-md);
    }

    /* Table responsive for mobile */
    .table-responsive {
        font-size: 0.85rem;
    }

    .roadmap-table thead th,
    .roadmap-table tbody td {
        padding: 8px 6px;
    }

    /* Hide less important columns on mobile */
    .roadmap-table .priority-col,
    .roadmap-table .date-col {
        display: none;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .admin-link-item a {
        font-size: 0.9rem;
    }

    .link-description {
        font-size: 0.8rem;
    }

    .section-headerAdminDashboard h3 {
        font-size: 0.9rem;
    }

    .form-container {
        padding: var(--spacing-md);
    }

    #welcome-message {
        padding: var(--spacing-md);
    }

    #welcome-message h3 {
        font-size: 1.25rem;
    }

    /* Make buttons stack vertically on very small screens */
    .roadmap-table .btn-submit {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* Print Styles for Admin Dashboard */
@media print {
    .admin-tools-container,
    .section-headerAdminDashboard .arrow-icon,
    .btn-group,
    .filter-section {
        display: none;
    }

    .section-content {
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
    }

    .roadmap-table {
        box-shadow: none;
    }

    .roadmap-table,
    .roadmap-table th,
    .roadmap-table td {
        border: 1px solid #000;
    }
}

/* Dark Mode Support (if implemented) */
@media (prefers-color-scheme: dark) {
    .section-headerAdminDashboard {
        background: linear-gradient(135deg, #495057 0%, #343a40 100%);
        color: #fff;
        border-color: #495057;
    }

    .section-headerAdminDashboard h3 {
        color: #fff;
    }

    .admin-link-item {
        background-color: #495057;
        border-color: #6c757d;
    }

    .admin-link-item a {
        color: #17a2b8;
    }

    .admin-link-item:hover {
        border-color: #17a2b8;
    }

    .link-description {
        color: #ced4da;
    }

    .filter-section {
        background: linear-gradient(135deg, #495057 0%, #343a40 100%);
        border-color: #6c757d;
    }

    .filter-section h4 {
        color: #17a2b8;
        border-bottom-color: #6c757d;
    }

    .filter-option {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .filter-option:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .filter-option label {
        color: #ced4da;
    }
}

/* Animation for section expansion */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 1000px;
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
    to {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Apply animations to section content */
.section-content.expanding {
    animation: slideDown 0.3s ease-out forwards;
}

.section-content.collapsing {
    animation: slideUp 0.3s ease-out forwards;
}