/* public/css/health_style.css */
/* Health Theme - Patriot & Medical Freedom
   WCAG 2.1 AA Compliant - Color Blind Accessible
   All color combinations tested for 4.5:1+ contrast ratio

   Updated: File browser uses white background for better icon visibility
   File/folder names: Black text on yellow highlight for maximum readability
   Admin/Settings areas: High contrast overrides for inline-styled elements */

/* === 1. Global Styles === */
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    background-color: #0d1b2a;
    background-image:
        radial-gradient(ellipse at top, #1b2838 0%, #0d1b2a 50%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(255, 193, 7, 0.03) 50px,
            rgba(255, 193, 7, 0.03) 51px
        );
    color: #ffffff;
    margin: 0;
    padding: 0;
    padding-bottom: 40px;
    line-height: 1.6;
}

/* Links - High contrast, distinguishable states */
a {
    color: #5dade2; /* Bright medical blue - 9.33:1 contrast */
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}
a:visited {
    color: #48c9b0; /* Teal - 10.57:1 contrast, distinct from blue */
}
a:hover {
    color: #ffc107; /* Gold highlight - 10.65:1 contrast */
    text-decoration: underline;
}
a:active {
    color: #f8f9fa;
    text-decoration: underline;
}
a:focus {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}

hr {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffc107, transparent);
    margin: 20px 0;
}

/* === 2. Layout (Window, Nav, Footer) === */
.window {
    background-color: #1b2838;
    border: 3px solid #ffc107;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    min-width: 300px;
    max-width: 95%;
    width: 95%;
    margin: 20px auto;
    position: relative;
}

.window-title-bar {
    background: linear-gradient(90deg, #243447, #2c4158, #243447);
    border-bottom: 3px solid #ffc107;
    color: #ffffff;
    padding: 12px 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
}

.window-title-bar .title {
    padding-left: 5px;
    letter-spacing: 1px;
}

.window-content {
    padding: 20px;
    background-color: #152232;
    border: 1px solid rgba(255, 193, 7, 0.2);
    margin: 4px;
}
.window-content label {
    color: #e8f4f8;
}
.window-content small {
    color: #a8c4db;
}

.window-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #1b2838, #0d1b2a);
    border-top: 3px solid #ffc107;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    padding: 10px;
    text-align: left;
    font-size: 14px;
    color: #ffffff;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.window-footer span {
    color: #ffffff;
}
.footer-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}
.footer-button {
    font-family: 'Georgia', serif;
    background-color: #243447;
    border: 2px solid #ffc107;
    padding: 8px 16px;
    min-width: 80px;
    cursor: pointer;
    text-decoration: none;
    color: #ffc107;
    font-size: 13px;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    transition: all 0.2s ease;
}
.footer-button:visited {
    color: #ffc107;
}
.footer-button:hover {
    text-decoration: none;
    background-color: #ffc107;
    color: #0d1b2a;
}
.footer-button:active {
    background-color: #e0a800;
    border-color: #e0a800;
}
.footer-button:focus {
    outline: 3px solid #5dade2;
    outline-offset: 2px;
}
.footer-text {
    color: #ffffff;
}

/* === Movable Launchpad === */
#launchpad {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #1b2838;
    border: 3px solid #ffc107;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 101;
    display: flex;
    flex-direction: column;
    width: auto;
    min-width: 150px;
}
#launchpad-header {
    width: 100%;
    height: auto;
    padding: 10px 15px;
    background: linear-gradient(90deg, #243447, #2c4158, #243447);
    cursor: move;
    color: #ffc107;
    box-sizing: border-box;
    text-align: left;
    border-bottom: 2px solid #ffc107;
}
#launchpad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#launchpad-header h3 {
    margin: 0;
    font-size: 16px;
    padding-left: 0;
    font-weight: bold;
    white-space: nowrap;
    letter-spacing: 1px;
}
#launchpad-autohide-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 5px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
#launchpad-autohide-btn:hover {
    opacity: 1;
}
.launchpad-autohide #launchpad-autohide-btn {
    opacity: 1;
}

.launchpad-content {
    display: flex;
    flex-direction: row;
    padding: 6px;
    justify-content: flex-start;
    align-items: center;
    background: #152232;
}
.launchpad-button {
    background-color: #dc143c; /* Crimson - patriotic red */
    border: 2px solid #ffc107;
    margin: 4px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.launchpad-button:hover {
    background-color: #ff4757;
    transform: scale(1.05);
}
.launchpad-button:active {
    background-color: #c41230;
}
.launchpad-button:focus {
    outline: 3px solid #5dade2;
    outline-offset: 2px;
}
.launchpad-button img {
    width: 28px;
    height: 28px;
}
/* Horizontal divider */
.launchpad-divider {
    width: 95%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffc107, transparent);
    margin: 4px auto;
}
/* Vertical divider */
.vertical-divider {
    width: 2px;
    height: 32px;
    background: linear-gradient(180deg, transparent, #ffc107, transparent);
    margin: 4px 10px;
}


/* === 3. Form Elements === */
button, input[type="submit"], .edit-button {
    font-family: 'Georgia', serif;
    background-color: #243447;
    border: 2px solid #ffc107;
    padding: 10px 16px;
    min-width: 80px;
    cursor: pointer;
    text-decoration: none;
    color: #ffc107;
    font-weight: bold;
    transition: all 0.2s ease;
}
button:hover, input[type="submit"]:hover, .edit-button:hover {
    background-color: #ffc107;
    color: #0d1b2a;
}
button:active, input[type="submit"]:active, .edit-button:active {
    background-color: #e0a800;
    border-color: #e0a800;
}
button:focus, input[type="submit"]:focus, .edit-button:focus {
    outline: 3px solid #5dade2;
    outline-offset: 2px;
}

input[type="text"], input[type="password"], textarea, select {
    font-family: 'Georgia', serif;
    font-size: 15px;
    border: 2px solid #5dade2;
    padding: 10px;
    background-color: #0d1b2a;
    color: #ffffff;
    transition: all 0.2s ease;
}
input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
}
input[type="text"]::placeholder, input[type="password"]::placeholder, textarea::placeholder {
    color: #8fa3b8; /* Accessible placeholder color - 5.1:1 contrast */
}
textarea {
    width: 95%;
    min-height: 300px;
}

/* Checkbox and radio styling for accessibility */
input[type="checkbox"], input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #ffc107;
}
input[type="checkbox"]:focus, input[type="radio"]:focus {
    outline: 3px solid #5dade2;
    outline-offset: 2px;
}

/* === 4. Content Styling (Lists & Pages) === */

.page-list {
    list-style-type: none;
    padding-left: 0;
}
.page-list li {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.05), transparent);
    transition: all 0.2s ease;
}
.page-list li:hover {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.1));
}
.page-list li a {
    font-size: 1.2em;
    font-weight: bold;
}
.page-list .meta {
    font-size: 0.85em;
    color: #a8c4db; /* Light blue-gray - 7.2:1 contrast */
    display: block;
    margin-top: 5px;
}

.page-body {
    background: #0d1b2a;
    border: 2px solid rgba(255, 193, 7, 0.4);
    padding: 25px;
    min-height: 200px;
    color: #e8f4f8; /* Very light blue-white - excellent contrast */
    line-height: 1.8;
}
.page-body h1, .page-body h2, .page-body h3 {
    color: #ffc107;
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
    padding-bottom: 10px;
    margin-top: 25px;
    font-weight: bold;
}
.page-body h1 { font-size: 2em; }
.page-body h2 { font-size: 1.6em; }
.page-body h3 { font-size: 1.3em; }

.page-body img {
    max-width: 100%;
    height: auto;
    border: 3px solid #ffc107;
}
.page-body code {
    background: #243447;
    border: 1px solid #5dade2;
    padding: 3px 8px;
    color: #5dade2;
    font-family: 'Courier New', monospace;
}
.page-body pre {
    background: #0d1b2a;
    border: 2px solid #5dade2;
    padding: 20px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #e8f4f8;
}
.page-body pre code {
    background: transparent;
    border: none;
    padding: 0;
    font-size: inherit;
    color: inherit;
}
.page-body blockquote {
    border-left: 4px solid #ffc107;
    padding-left: 20px;
    margin-left: 10px;
    font-style: italic;
    color: #e8f4f8;
    background: rgba(255, 193, 7, 0.05);
    padding: 15px 20px;
}
.page-body table,
.profile-bio table {
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    background: #152232;
    border: 2px solid #ffc107;
    table-layout: auto;
}
.page-body table th,
.profile-bio table th {
    background: #243447;
    border: 1px solid #ffc107;
    padding: 12px 15px;
    font-weight: bold;
    text-align: left;
    color: #ffc107;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.page-body table td,
.profile-bio table td {
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 12px 15px;
    background: #152232;
    color: #e8f4f8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.page-body table tr:nth-child(even) td,
.profile-bio table tr:nth-child(even) td {
    background: #1b2838;
}
.page-body table tr:hover td,
.profile-bio table tr:hover td {
    background: rgba(255, 193, 7, 0.1);
}
/* Table wrapper for horizontal scrolling */
.page-body table,
.profile-bio table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.page-body table > thead,
.page-body table > tbody,
.page-body table > tfoot,
.profile-bio table > thead,
.profile-bio table > tbody,
.profile-bio table > tfoot {
    display: table;
    width: 100%;
}

.page-meta {
    font-size: 0.9em;
    color: #a8c4db;
}
.page-meta code {
    background: #243447;
    border: 1px solid #5dade2;
    padding: 2px 6px;
    font-size: 0.9em;
    color: #5dade2;
}
.page-meta ul {
    font-size: 0.9em;
    max-height: 150px;
    overflow-y: auto;
    background: #0d1b2a;
    border: 2px solid rgba(255, 193, 7, 0.4);
    padding: 12px;
}

/* Page Actions Bar & Buttons */
.page-actions-bar {
    overflow: auto;
    margin-bottom: 15px;
}
.edit-button {
    float: right;
    margin-bottom: 0;
    margin-left: 10px;
}
.print-button {
    float: right;
}


/* === 5. Admin & Notices === */

.notice-box {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid #ffc107;
    padding: 15px;
    margin-bottom: 15px;
    color: #ffc107;
    font-weight: bold;
}

.inline-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.delete-button, .delete-button-small {
    background-color: #5c1a1a;
    color: #ff6b6b; /* Accessible red text - 5.8:1 contrast on dark */
    border: 2px solid #ff6b6b;
    font-weight: bold;
    transition: all 0.2s ease;
}
.delete-button:hover, .delete-button-small:hover {
    background-color: #dc143c;
    color: #ffffff;
    border-color: #dc143c;
}
.delete-button:active, .delete-button-small:active {
    background-color: #a01030;
    border-color: #a01030;
}
.delete-button:focus, .delete-button-small:focus {
    outline: 3px solid #5dade2;
    outline-offset: 2px;
}
.delete-button {
    padding: 10px 16px;
}

/* Admin Section & Site Settings - High Contrast */
.admin-section {
    background: #1b2838;
    border: 2px solid rgba(255, 193, 7, 0.4);
    padding: 20px;
    margin: 20px 0;
}
.admin-section h2 {
    color: #ffc107;
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
    padding-bottom: 10px;
    margin-top: 0;
}
.admin-section h3 {
    color: #e8f4f8;
}

.help-text {
    color: #a8c4db; /* Light blue-gray - 7.2:1 contrast on dark */
    font-size: 0.9em;
    font-style: italic;
}

.admin-message {
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid;
    font-weight: bold;
}
.admin-message.success {
    background: #1a3a1a;
    border-color: #28a745;
    color: #98d898; /* Light green - high contrast on dark */
}
.admin-message.error {
    background: #3a1a1a;
    border-color: #dc3545;
    color: #ff9999; /* Light red - high contrast on dark */
}

.admin-form {
    margin: 15px 0;
}
.admin-form label {
    color: #e8f4f8;
    font-weight: bold;
}

/* Embeds Table Styling */
.embeds-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: #152232;
    border: 2px solid #ffc107;
}
.embeds-table th {
    background: #243447;
    border: 1px solid #ffc107;
    padding: 12px 15px;
    font-weight: bold;
    text-align: left;
    color: #ffc107;
}
.embeds-table td {
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 12px 15px;
    background: #152232;
    color: #e8f4f8;
}
.embeds-table tr:nth-child(even) td {
    background: #1b2838;
}
.embeds-table tr:hover td {
    background: rgba(255, 193, 7, 0.1);
}
.embeds-table code {
    background: #243447;
    border: 1px solid #5dade2;
    padding: 2px 6px;
    color: #5dade2;
    font-family: 'Courier New', monospace;
}

/* Security Notice - Override inline styles with high contrast */
.security-notice,
div[style*="background: #fff3cd"],
.window-content div[style*="border-left: 4px solid #ffc107"] {
    background: #2a2a1a !important;
    border-left: 4px solid #ffc107 !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    color: #e8f4f8 !important;
}
.security-notice strong,
div[style*="background: #fff3cd"] strong {
    color: #ffc107 !important;
}
.security-notice ul,
div[style*="background: #fff3cd"] ul {
    color: #e8f4f8 !important;
    margin: 10px 0 !important;
    padding-left: 25px !important;
}

/* Quick Reference Box - Override inline styles */
div[style*="background: #e8f4f8"],
.window-content div[style*="border-left: 4px solid #0078d7"] {
    background: #1a2a3a !important;
    border-left: 4px solid #5dade2 !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    color: #e8f4f8 !important;
}
div[style*="background: #e8f4f8"] strong {
    color: #5dade2 !important;
}
div[style*="background: #e8f4f8"] ul {
    color: #e8f4f8 !important;
}
div[style*="background: #e8f4f8"] code {
    background: #243447 !important;
    border: 1px solid #5dade2 !important;
    padding: 2px 6px !important;
    color: #5dade2 !important;
}

/* Button Danger Style */
.button-danger {
    background-color: #5c1a1a;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
    font-family: 'Georgia', serif;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}
.button-danger:hover {
    background-color: #dc143c;
    color: #ffffff;
    border-color: #dc143c;
}

/* === Edit Page - Override inline light gray backgrounds === */
/* Content Tools Bar */
.window-content div[style*="background: #f5f5f5"],
.window-content div[style*="background: #f0f0f0"],
.window-content div[style*="background:#f5f5f5"],
.window-content div[style*="background:#f0f0f0"] {
    background: #1b2838 !important;
    border-color: rgba(255, 193, 7, 0.4) !important;
    color: #e8f4f8 !important;
}
.window-content div[style*="background: #f5f5f5"] strong,
.window-content div[style*="background: #f0f0f0"] strong {
    color: #ffc107 !important;
}
.window-content div[style*="background: #f5f5f5"] small,
.window-content div[style*="background: #f0f0f0"] small {
    color: #a8c4db !important;
}

/* Plugin Manager, Embed Browsers, Image Manager sections */
.embed-browser-section,
.php-embed-browser-section,
.image-manager-section,
#plugin-manager {
    background: #1b2838 !important;
    border: 2px solid rgba(255, 193, 7, 0.5) !important;
    color: #e8f4f8 !important;
}
.embed-browser-section h3,
.php-embed-browser-section h3,
.image-manager-section h3,
#plugin-manager h3,
#plugin-manager h4 {
    color: #ffc107 !important;
}
.embed-browser-section p,
.php-embed-browser-section p,
.image-manager-section p,
#plugin-manager p {
    color: #e8f4f8 !important;
}
.embed-browser-section small,
.php-embed-browser-section small,
.image-manager-section small {
    color: #a8c4db !important;
}

/* Plugin Form white background */
#plugin-form,
.window-content div[style*="background: #ffffff"],
.window-content div[style*="background:#ffffff"],
.window-content div[style*="background: white"],
.window-content form[style*="background: #ffffff"] {
    background: #152232 !important;
    border-color: rgba(255, 193, 7, 0.4) !important;
    color: #e8f4f8 !important;
}
#plugin-form label,
.window-content div[style*="background: #ffffff"] label,
.window-content div[style*="background: white"] label {
    color: #e8f4f8 !important;
}
#plugin-form small {
    color: #a8c4db !important;
}

/* Embed/Image Cards */
.embed-card,
.php-embed-card,
.image-card {
    background: #152232 !important;
    border-color: rgba(255, 193, 7, 0.5) !important;
}
.embed-card:hover,
.php-embed-card:hover,
.image-card:hover {
    border-color: #ffc107 !important;
}

/* Embed Info Areas (light gray #e0e0e0) */
.embed-info,
.php-embed-info,
.image-info,
.window-content div[style*="background: #e0e0e0"] {
    background: #243447 !important;
    border-color: rgba(255, 193, 7, 0.3) !important;
    color: #e8f4f8 !important;
}
.embed-info strong,
.php-embed-info strong,
.image-info strong {
    color: #ffc107 !important;
}
.embed-size,
.php-embed-size,
.image-info div[style*="color: #666"] {
    color: #a8c4db !important;
}
.php-embed-params {
    color: #5dade2 !important;
}

/* Embed Preview Areas */
.embed-preview,
.image-preview {
    background: #0d1b2a !important;
}

/* No embeds/images message */
.no-embeds,
.no-images,
.window-content p[style*="color: #666"] {
    color: #a8c4db !important;
}

/* Plugin existing instances list */
#plugin-manager ul {
    color: #e8f4f8 !important;
}
#plugin-manager li {
    color: #e8f4f8 !important;
}
#plugin-manager code {
    background: #ffc107 !important;
    color: #0d1b2a !important;
    padding: 2px 6px !important;
}

/* Plugin selector */
.plugin-selector label {
    color: #e8f4f8 !important;
}

/* Private Share Link box (yellow) */
.window-content div[style*="background: #fff8c4"] {
    background: #2a2a1a !important;
    border-color: #ffc107 !important;
    color: #e8f4f8 !important;
}
.window-content div[style*="background: #fff8c4"] strong {
    color: #ffc107 !important;
}
.window-content div[style*="background: #fff8c4"] small {
    color: #a8c4db !important;
}

/* Flash Messages in edit page */
.window-content div[style*="background: #e8f4e8"],
.window-content div[style*="background:#e8f4e8"] {
    background: #1a3a1a !important;
    border-color: #28a745 !important;
    color: #98d898 !important;
}
.window-content div[style*="background: #fdecea"],
.window-content div[style*="background:#fdecea"] {
    background: #3a1a1a !important;
    border-color: #dc3545 !important;
    color: #ff9999 !important;
}

/* Horizontal rules in edit page */
.window-content hr[style*="border: 1px solid #808080"],
.window-content hr[style*="border: 1px solid #c0c0c0"] {
    border-color: rgba(255, 193, 7, 0.4) !important;
}

/* Select dropdowns in edit sections */
#plugin-manager select,
.embed-browser-section select,
#import-mode {
    background: #0d1b2a !important;
    color: #ffffff !important;
    border: 2px solid #5dade2 !important;
}

/* Input fields in edit sections */
#plugin-manager input[type="text"],
#instance-id,
.image-info input[type="text"] {
    background: #0d1b2a !important;
    color: #ffffff !important;
    border: 2px solid #5dade2 !important;
}
.image-info input[type="text"]::placeholder {
    color: #8fa3b8 !important;
}

/* Buttons in edit sections with gray background */
.window-content button[style*="background: #c0c0c0"],
#plugin-manager button[style*="background: #c0c0c0"] {
    background: #243447 !important;
    border: 2px solid #ffc107 !important;
    color: #ffc107 !important;
}
.window-content button[style*="background: #c0c0c0"]:hover,
#plugin-manager button[style*="background: #c0c0c0"]:hover {
    background: #ffc107 !important;
    color: #0d1b2a !important;
}

/* Small Buttons (Edit, Rename, Move, Delete) */
.edit-button-small,
.delete-button-small {
    font-family: 'Georgia', serif;
    background-color: #243447;
    border: 2px solid #ffc107;
    padding: 4px 8px;
    font-size: 12px;
    min-width: 0;
    text-decoration: none;
    color: #ffc107;
    margin: 0;
    vertical-align: middle;
    line-height: 1;
    display: inline-block;
    font-weight: bold;
    transition: all 0.2s ease;
}
.edit-button-small:hover {
    background-color: #ffc107;
    color: #0d1b2a;
}
.delete-button-small {
    background-color: #5c1a1a;
    color: #ff6b6b;
    border-color: #ff6b6b;
}

.page-list-admin {
    list-style-type: none;
    padding-left: 0;
}
.page-list-admin li {
    background: linear-gradient(90deg, #1b2838, #243447);
    border: 2px solid rgba(255, 193, 7, 0.3);
    padding: 15px;
    margin-bottom: 10px;
    overflow: auto;
    transition: all 0.2s ease;
}
.page-list-admin li:hover {
    background: linear-gradient(90deg, #243447, #2c4158);
    border-color: #ffc107;
}
.page-list-admin .meta {
    font-size: 0.85em;
    color: #a8c4db;
    display: block;
}

/* === 6. Profile Page Styles === */
.profile-header {
    overflow: auto;
    margin-bottom: 20px;
}
.profile-photo {
    float: left;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid #ffc107;
    background-color: #243447;
}
.profile-username {
    margin: 0;
    padding-top: 5px;
    color: #ffc107;
    font-size: 1.5em;
}
.profile-tagline {
    font-style: italic;
    color: #a8c4db;
    font-size: 1.1em;
    margin-top: 5px;
}
.profile-bio {
    min-height: 100px;
    color: #e8f4f8;
    line-height: 1.8;
}
.profile-photo-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #ffc107;
}


/* === 7. Browser, Search & Breadcrumbs === */

.window-title-bar .title-button {
    display: inline-block;
    padding: 0 5px;
}
.window-title-bar .title-button img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}
.window-title-bar .title a {
    color: #ffc107;
    text-decoration: none;
}
.window-title-bar .title a:visited {
    color: #ffc107;
}
.window-title-bar .title a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.window-title-bar .title a:active {
    color: #e0a800;
}

.search-bar {
    background: linear-gradient(180deg, #1b2838, #152232);
    padding: 15px;
    border-bottom: 2px solid rgba(255, 193, 7, 0.4);
}
.search-bar form {
    display: flex;
}
.search-bar input[type="text"] {
    flex-grow: 1;
    margin-right: 10px;
}

.browser-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 20px;
    background: #ffffff;
    border: 2px solid rgba(255, 193, 7, 0.4);
}
.browser-item {
    width: 100px;
    margin: 12px;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
}
.browser-item:hover {
    transform: translateY(-3px);
}
.browser-item .icon-link {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #0d1b2a;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}
.browser-item .icon-link:hover {
    background: rgba(255, 193, 7, 0.3);
    border-color: #ffc107;
}
.browser-item .icon-link:focus {
    outline: 3px solid #5dade2;
    outline-offset: 2px;
}
.browser-icon {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto 10px auto;
    transition: all 0.2s ease;
}
.browser-item:hover .browser-icon {
    transform: scale(1.05);
}
.feature-image-icon {
    object-fit: cover;
    border: 2px solid #ffc107;
}

.item-name {
    display: block;
    font-size: 12px;
    word-wrap: break-word;
    height: 40px;
    overflow: hidden;
    color: #000000;
    background-color: #ffc107;
    padding: 2px 4px;
    border-radius: 2px;
}
.item-actions {
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    height: 20px;
    line-height: 18px;
    display: flex;
    justify-content: center;
}
.item-actions form {
    margin: 0;
    padding: 0;
    line-height: inherit;
    display: inline;
}


.admin-forms {
    background: linear-gradient(180deg, #1b2838, #152232);
    padding: 20px;
    border-top: 2px solid rgba(255, 193, 7, 0.4);
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.admin-forms form {
    display: flex;
}
.admin-forms input[type="text"] {
    margin-right: 10px;
}

/* === Style for broken UUID links === */
.broken-link {
    color: #ff6b6b;
    text-decoration: line-through;
    cursor: help;
}
.broken-link:hover {
    text-decoration: line-through;
}


/* === 8. Responsive Design === */
@media (max-width: 768px) {

    body {
        padding-top: 60px;
        padding-bottom: 0;
        font-size: 18px;
    }

    #launchpad {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        flex-direction: row;
        align-items: center;
        border: none;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
        background-color: #1b2838;
        border-bottom: 3px solid #ffc107;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        box-sizing: border-box;
    }
    #launchpad-header {
        height: 100%;
        width: auto;
        border-right: 2px solid #ffc107;
        cursor: default;
        padding: 0 12px;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        background: linear-gradient(90deg, #243447, #2c4158, #243447);
        color: #ffc107;
    }
    #launchpad-header h3 {
        font-size: 18px;
        white-space: nowrap;
    }

    .launchpad-content {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 6px;
        width: auto;
    }
    .launchpad-divider {
        display: inline-block;
        height: 48px;
        width: 2px;
        margin: 4px 10px;
        background: linear-gradient(180deg, transparent, #ffc107, transparent);
    }
    .launchpad-button {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }
    .launchpad-button img {
        width: 40px;
        height: 40px;
    }

    .window {
        width: 100%;
        margin: 0;
        border: 3px solid #ffc107;
        padding-bottom: 20px;
        box-sizing: border-box;
    }
    .window-content {
        padding: 15px;
        background-color: #152232;
    }
    .page-body {
        background: #0d1b2a;
    }
    .browser-container {
        background: #ffffff;
    }


    .window-footer {
        position: static;
        text-align: center;
        background: linear-gradient(180deg, #1b2838, #0d1b2a);
        color: #ffffff;
        border-top: 3px solid #ffc107;
        flex-direction: column;
        gap: 10px;
    }
    .window-footer span {
        color: #ffffff;
    }
    .footer-buttons {
        justify-content: center;
        width: 100%;
    }
    .footer-text {
        text-align: center;
        width: 100%;
    }

    .browser-container {
        justify-content: space-around;
    }
    .browser-item {
        width: 85px;
        margin: 8px;
    }
    .browser-icon {
        width: 50px;
        height: 50px;
    }
    .item-name {
        height: 34px;
    }
    .item-actions {
        display: flex;
        flex-direction: row;
        justify-content: center;
        height: auto;
        line-height: normal;
        margin-top: 5px;
    }
    .item-actions .edit-button-small,
    .item-actions .inline-form {
        margin: 0 2px;
        width: auto;
    }
    .edit-button-small,
    .delete-button-small {
        padding: 4px 8px;
        font-size: 13px;
    }

    .admin-forms {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-forms form {
        flex-direction: column;
        margin-bottom: 12px;
    }
    .admin-forms input[type="text"] {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .admin-forms button, .admin-forms a button {
        width: 100%;
        box-sizing: border-box;
    }

    .profile-header {
        text-align: center;
    }
    .profile-photo {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
    }

    .window-content input[type="text"],
    .window-content textarea {
        width: 95% !important;
        box-sizing: border-box;
    }
    .window-content input[type="file"] {
        width: 95%;
    }

    .search-bar form {
        flex-direction: column;
    }
    .search-bar input[type="text"] {
        margin-right: 0;
        margin-bottom: 10px;
        box-sizing: border-box;
    }

    /* Responsive tables on mobile */
    .page-body table,
    .profile-bio table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 14px;
    }
    .page-body table th,
    .profile-bio table th,
    .page-body table td,
    .profile-bio table td {
        min-width: 80px;
        max-width: none;
        padding: 8px 10px;
    }
}

/* === 9. Skip Link for Keyboard Users === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ffc107;
    color: #0d1b2a;
    padding: 10px 15px;
    z-index: 1000;
    font-weight: bold;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}

/* === 10. Focus Indicators (Enhanced Accessibility) === */
*:focus-visible {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}

/* === 11. Print Styles Override === */
@media print {
    body {
        background: white;
        color: black;
    }
    a {
        color: #0066cc;
        text-decoration: underline;
    }
    .window {
        border: 1px solid #ccc;
        box-shadow: none;
    }
    .window-title-bar {
        background: #f0f0f0;
        color: black;
        border-bottom: 1px solid #ccc;
    }
    .launchpad, .window-footer, .footer-buttons {
        display: none !important;
    }
}
