/* ==========================================================================
   440Music Songwriter & Media Library (lib.440music.com)
   Solid Dark Theme - Zero Transparency
   ========================================================================== */

:root {
    --lib-bg-page: #000000;
    --lib-bg-surface: #111827;
    --lib-bg-card: #1e293b;
    --lib-bg-card-hover: #273549;
    --lib-bg-input: #0f172a;
    --lib-border: #374151;
    --lib-border-focus: #38bdf8;
    
    --lib-text-main: #ffffff;
    --lib-text-muted: #94a3b8;
    --lib-text-dark: #64748b;
    
    --lib-primary: #38bdf8;
    --lib-primary-hover: #0284c7;
    --lib-accent-yellow: #ffff00;
    --lib-accent-gold: #facc15;
    --lib-success: #10b981;
    --lib-warning: #f59e0b;
    --lib-danger: #ef4444;
    --lib-info: #6366f1;
}

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

body {
    font-family: Georgia, 'Times New Roman', serif;
    background-color: var(--lib-bg-page);
    color: var(--lib-text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
}

/* Container */
.lib-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Nav */
.lib-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

/* Row 1: 440Music Master Network Navigation */
.lib-master-bar {
    background: linear-gradient(180deg, #2b2b2b 0%, #151515 46%, #0a0a0a 50%, #1c1c1c 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 6px rgba(180, 180, 180, 0.4),
        0 4px 18px rgba(0, 0, 0, 0.9),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    position: relative;
    z-index: 1010;
    box-sizing: border-box;
}

.lib-master-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 36px;
}

.lib-master-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.lib-master-item {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
    margin: 0 3px;
}

.lib-master-link,
.lib-dropbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    line-height: 28px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow:
        0 0 2px #000000,
        0 0 4px #000000,
        0 0 6px #000000,
        0 0 10px #000000,
        0 1px 2px #000000,
        0 -1px 2px #000000,
        1px 0 2px #000000,
        -1px 0 2px #000000;
    filter: drop-shadow(0 0 3px #000000) drop-shadow(0 0 5px #000000);
    transition: color 0.2s ease, text-shadow 0.2s ease, filter 0.2s ease;
}

.lib-master-link:hover,
.lib-dropbtn:hover,
.lib-master-link:focus,
.lib-dropbtn:focus,
.lib-master-item:hover > .lib-master-link,
.lib-master-item:hover > .lib-dropbtn,
.lib-master-link.active {
    background: transparent;
    color: #ffff00;
    text-decoration: none;
    text-shadow:
        0 0 8px rgba(255, 255, 0, 0.95),
        0 0 14px rgba(250, 204, 21, 0.75),
        0 0 2px #000000,
        0 0 4px #000000,
        0 0 8px #000000;
    filter: drop-shadow(0 0 3px #000000) drop-shadow(0 0 5px #000000);
}

.lib-dropdown {
    position: relative;
}

.lib-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    border: 1px solid #ffff00;
    background: #000000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.95);
    z-index: 3000;
    border-radius: 0 0 4px 4px;
    padding: 4px 0;
}

.lib-dropdown-content a {
    display: block;
    width: 100%;
    padding: 7px 14px;
    color: #ffffff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    font-weight: normal;
    text-align: left;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.lib-dropdown-content a:hover {
    color: #ffff00;
    background-color: #1e293b;
}

.lib-dropdown:hover .lib-dropdown-content,
.lib-dropdown:focus-within .lib-dropdown-content {
    display: block;
}

/* Row 2: 440Music Entertainment Co. Library Portal Sub-Bar */
.lib-sub-bar {
    background-color: var(--lib-bg-surface);
    border-bottom: 1px solid var(--lib-border);
}

.lib-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.lib-navbar-header {
    display: flex;
    align-items: center;
}

.lib-menu-toggle-btn {
    display: none;
}

.lib-navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 2rem;
}

.lib-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--lib-text-main);
    font-weight: 700;
    font-size: 1.25rem;
}

.lib-brand-logo {
    height: 38px;
    width: auto;
    max-height: 38px;
    display: block;
    object-fit: contain;
}

.lib-brand-icon {
    font-size: 1.5rem;
}

.lib-brand-highlight {
    color: var(--lib-primary);
}

.lib-nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
}

.lib-nav-link {
    color: var(--lib-text-muted);
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 500;
    transition: color 0.15s ease;
    padding: 0.5rem 0.25rem;
}

.lib-nav-link:hover,
.lib-nav-link.active {
    color: var(--lib-primary);
}

.lib-user-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--lib-bg-card);
    border: 1px solid var(--lib-border);
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    color: var(--lib-text-main);
}

.lib-user-badge {
    background-color: var(--lib-primary);
    color: #0b0f19;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

/* Main Content */
.lib-main {
    flex: 1;
    padding: 2.5rem 0;
}

/* Alerts / Flashes */
.lib-alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 4px solid transparent;
}

.lib-alert-success {
    background-color: #064e3b;
    border-color: var(--lib-success);
    color: #a7f3d0;
}

.lib-alert-error {
    background-color: #7f1d1d;
    border-color: var(--lib-danger);
    color: #fecaca;
}

.lib-alert-info {
    background-color: #1e1b4b;
    border-color: var(--lib-info);
    color: #c7d2fe;
}

/* Hero Section */
/* Welcome Section & Layout (68% Welcome Box, 30% Aside, 2% Gap) */
.lib-welcome-layout {
    display: grid;
    grid-template-columns: 68% 30%;
    column-gap: 2%;
    align-items: start;
    width: 100%;
    margin-bottom: 2.5rem;
}

.lib-main-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.lib-welcome-box {
    background: linear-gradient(180deg, #111827 0%, #0d121f 100%);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 2.25rem 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    color: #ffffff;
    box-sizing: border-box;
}

.lib-hero {
    background-color: var(--lib-bg-surface);
    border: 1px solid var(--lib-border);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.lib-hero-content {
    max-width: 700px;
}

.lib-hero-title {
    font-size: 2.15rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    color: #ffffff;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: -0.02em;
}

.lib-hero-subtitle {
    font-size: 1.05rem;
    color: var(--lib-text-muted);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.lib-hero-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

/* ================= ASIDE WIDGETS (PORTED FROM 440MUSIC STANDARD) ================= */
.dashboard-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-sizing: border-box;
}

.aside-box {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 1.25rem 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    box-sizing: border-box;
}

.aside-box-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-family: Georgia, 'Times New Roman', serif;
}

.aside-title-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.aside-badge-sale {
    background: #e63946;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aside-link-more {
    font-size: 0.78rem;
    color: #38bdf8 !important;
    text-decoration: none;
    font-weight: 600;
}

.aside-link-more:hover {
    color: #ffff00 !important;
    text-decoration: underline;
}

.aside-store-slider {
    position: relative;
    min-height: 250px;
}

.aside-store-slide {
    display: none;
}

.aside-store-slide.is-active {
    display: block;
}

.aside-product-card {
    text-align: center;
}

.aside-product-frame {
    width: 100%;
    height: 150px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 6px;
    box-sizing: border-box;
}

.aside-product-frame a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.aside-product-frame img {
    max-height: 138px;
    max-width: 100%;
    object-fit: contain;
}

.aside-product-brand {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.aside-product-title {
    margin: 0 0 6px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    font-family: Georgia, 'Times New Roman', serif;
}

.aside-product-title a {
    color: #ffffff !important;
    text-decoration: none;
}

.aside-product-title a:hover {
    color: #ffff00 !important;
    text-decoration: underline;
}

.aside-product-price-wrap {
    margin-bottom: 10px;
}

.aside-product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #4ade80;
}

.aside-product-btn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    box-sizing: border-box;
}

.aside-store-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.store-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    color: #ffffff;
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 14px;
}

.store-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffff00;
}

.aside-dots {
    display: flex;
    gap: 5px;
}

.aside-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.15s ease;
}

.aside-dot.is-active {
    background: #38bdf8 !important;
}

.aside-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.aside-calendar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aside-calendar-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #000000;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.aside-calendar-badge {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: #1e293b;
    border: 1px solid #38bdf8;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.aside-calendar-badge-month {
    font-size: 0.65rem;
    font-weight: 800;
    color: #38bdf8;
}

.aside-calendar-badge-day {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 2px;
}

.aside-calendar-info {
    flex: 1;
    min-width: 0;
}

.aside-calendar-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: Georgia, 'Times New Roman', serif;
}

.aside-calendar-band {
    font-size: 0.78rem;
    color: #facc15;
    margin-top: 1px;
}

.aside-calendar-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.aside-calendar-empty {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin: 0 0 12px;
    line-height: 1.4;
}

.aside-actions-col {
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.aside-calendar-btn {
    font-size: 0.82rem;
    padding: 6px 10px;
    text-align: center;
}

.aside-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.aside-category-list li a {
    color: #cbd5e1 !important;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.15s, padding-left 0.15s;
    display: block;
}

.aside-category-list li a:hover {
    color: #ffff00 !important;
    padding-left: 3px;
}

/* Grid Layouts */
.lib-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 0;
}

.lib-grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 0;
}

/* Cards */
.lib-card {
    background-color: var(--lib-bg-card);
    border: 1px solid var(--lib-border);
    border-radius: 10px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.lib-card-stat {
    background-color: var(--lib-bg-surface);
    border: 1px solid var(--lib-border);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

.lib-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lib-text-main);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lib-card-desc {
    color: var(--lib-text-muted);
    font-size: 0.925rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

.lib-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--lib-primary);
    margin-bottom: 0.25rem;
}

.lib-stat-label {
    font-size: 0.85rem;
    color: var(--lib-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons */
.lib-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.lib-btn-primary {
    background-color: var(--lib-primary);
    color: #0b0f19;
}

.lib-btn-primary:hover {
    background-color: var(--lib-primary-hover);
    color: #ffffff;
}

.lib-btn-secondary {
    background-color: transparent;
    border-color: var(--lib-border);
    color: var(--lib-text-main);
}

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

.lib-btn-success {
    background-color: var(--lib-success);
    color: #0b0f19;
}

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

.lib-btn-small {
    font-size: 0.825rem;
    padding: 0.35rem 0.65rem;
}

/* Forms */
.lib-form-panel {
    background-color: var(--lib-bg-surface);
    border: 1px solid var(--lib-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.lib-form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--lib-border);
}

.lib-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.lib-form-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--lib-primary);
    margin-bottom: 0.25rem;
}

.lib-form-section-desc {
    font-size: 0.875rem;
    color: var(--lib-text-muted);
    margin-bottom: 1.25rem;
}

.lib-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.lib-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lib-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lib-text-main);
}

.lib-label-hint {
    font-size: 0.775rem;
    color: var(--lib-text-muted);
    font-weight: 400;
}

.lib-input,
.lib-select,
.lib-textarea {
    background-color: var(--lib-bg-input);
    border: 1px solid var(--lib-border);
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    color: var(--lib-text-main);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
}

.lib-input:focus,
.lib-select:focus,
.lib-textarea:focus {
    border-color: var(--lib-border-focus);
}

.lib-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Repeating Credits Rows */
.lib-repeater-wrap {
    margin-top: 0.5rem;
}

.lib-repeater-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
    background-color: var(--lib-bg-card);
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--lib-border);
}

.lib-repeater-del {
    background: none;
    border: none;
    color: var(--lib-danger);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

/* Tables */
.lib-table-wrap {
    overflow-x: auto;
    background-color: var(--lib-bg-surface);
    border: 1px solid var(--lib-border);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.lib-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.lib-table th {
    background-color: #1a2234;
    color: var(--lib-text-muted);
    padding: 0.85rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--lib-border);
    text-transform: uppercase;
    font-size: 0.775rem;
    letter-spacing: 0.05em;
}

.lib-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--lib-border);
    color: var(--lib-text-main);
}

.lib-table tbody tr:hover {
    background-color: var(--lib-bg-card-hover);
}

/* Badges */
.lib-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lib-badge-synced {
    background-color: #065f46;
    color: #6ee7b7;
}

.lib-badge-pending {
    background-color: #78350f;
    color: #fde68a;
}

.lib-badge-error {
    background-color: #991b1b;
    color: #fca5a5;
}

.lib-badge-draft {
    background-color: #374151;
    color: #d1d5db;
}

/* ==========================================================================
   440Music Site Footer Styles
   ========================================================================== */
.site-footer {
    width: 100%;
    margin-top: 50px;
    padding: 36px 5% 28px;
    border-top: 2px solid #ffff00;
    color: #ffffff;
    background: #000000;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    width: min(1200px, 100%);
    margin: 0 auto;
}

.footer-col,
.footer-safety,
.footer-col-2,
.footer-col-3,
.footer-col-4,
.footer-col-5 {
    flex: 1 1 200px;
    min-width: 0;
}

.footer-col h4,
.footer-col h6,
.footer-col-title,
.footer-safety h4,
.footer-safety h5 {
    margin: 0 0 10px;
    color: #ffff00;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    font-family: Georgia, 'Times New Roman', serif;
}

.footer-collapsible .footer-col-header {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #ffff00;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: default;
    width: auto;
    font-family: Georgia, 'Times New Roman', serif;
}

.footer-col ul,
.footer-safety ul,
.footer-safety ol,
.menu-footer {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-col li,
.footer-safety li,
.menu-footer li {
    margin-bottom: 7px;
    color: #ffffff;
    font-size: 13.5px;
    line-height: 1.4;
}

.site-footer a,
.footer-col a,
.footer-safety a,
.menu-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover,
.footer-col a:hover,
.footer-safety a:hover,
.menu-footer a:hover {
    color: #ffff00;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #222222;
    text-align: center;
    width: min(1200px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.footer-copyright {
    text-align: center;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.5;
}

.footer-copyright .font-xs {
    font-size: 12.5px;
    color: #d1d5db;
}

/* Responsive */
@media (max-width: 960px) {
    .lib-welcome-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .lib-master-bar {
        overflow: visible;
        height: 36px;
    }

    .lib-navbar {
        flex-direction: column;
        height: auto;
        padding: 0.75rem 0;
        gap: 0;
    }

    .lib-navbar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .lib-menu-toggle-btn {
        display: block;
        padding: 6px 12px;
        border: 1px solid #ffff00;
        color: #ffff00;
        background: rgba(0, 0, 0, 0.85);
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 13px;
        font-weight: 700;
        border-radius: 4px;
        cursor: pointer;
    }

    .lib-menu-toggle-btn:hover,
    .lib-menu-toggle-btn:focus {
        background: rgba(255, 255, 0, 0.15);
    }

    .lib-navbar-collapse {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 0.75rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lib-navbar-collapse.open {
        display: flex;
    }

    .lib-nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.25rem;
        padding: 0;
    }

    .lib-nav-link {
        display: block;
        padding: 0.5rem 0.75rem;
        border-radius: 4px;
    }

    .lib-nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .lib-user-area {
        width: 100%;
        padding-top: 0.5rem;
    }

    .lib-user-pill {
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
    }
    
    .lib-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .lib-hero-actions {
        justify-content: center;
    }
    
    .lib-repeater-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        flex-direction: column;
        gap: 12px;
    }

    .footer-col,
    .footer-safety {
        width: 100%;
        flex: 1 1 100%;
    }

    .footer-col-title {
        margin: 0;
    }

    .footer-collapsible .footer-col-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 14px;
        background-color: #111111;
        border: 1px solid #333333;
        border-radius: 4px;
        color: #ffff00;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        user-select: none;
        box-sizing: border-box;
        text-align: left;
    }

    .footer-collapsible .footer-col-header:hover,
    .footer-collapsible .footer-col-header:focus {
        border-color: #ffff00;
    }

    .footer-collapsible ul,
    .footer-collapsible ol,
    .footer-collapsible .menu-footer {
        display: none;
        padding-left: 14px;
        margin-top: 8px;
        margin-bottom: 12px;
    }

    .footer-collapsible.open ul,
    .footer-collapsible.open ol,
    .footer-collapsible.open .menu-footer {
        display: block;
    }

    .footer-safety {
        padding: 8px 14px;
        background-color: #111111;
        border: 1px solid #333333;
        border-radius: 4px;
    }

    .footer-safety h4 {
        margin: 0 0 8px;
        color: #ffff00;
    }
}

/* Utilities */
.lib-action-buttons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.lib-form-inline {
    display: inline;
}

.lib-hidden {
    display: none;
}

.lib-mb-1 {
    margin-bottom: 1rem;
}

.lib-mb-15 {
    margin-bottom: 1.5rem;
}

.lib-mt-2 {
    margin-top: 2rem;
}
