/* Glassmorphic Window Container */
.imt-window {
    position: absolute;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    box-shadow:
        0 20px 50px -10px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(74, 93, 78, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

/* Header / Title Bar */
.window-header {
    height: 38px;
    background: rgba(248, 249, 250, 0.6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    padding: 0 14px;
    cursor: grab;
    user-select: none;
}

.window-header:active {
    cursor: grabbing;
}

/* Window Control Buttons */
.window-controls {
    display: flex;
    gap: 8px;
    margin-right: 14px;
}

.win-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.win-btn:hover {
    transform: scale(1.1);
}

.close-btn {
    background-color: #ff5f56;
}

.minimize-btn {
    background-color: #ffbd2e;
}

.maximize-btn {
    background-color: #27c93f;
}

.window-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.2px;
}

/* Window Body Content */
.window-body {
    flex: 1;
    overflow-y: auto;
    position: relative;
    color: var(--text-dark);
}


/* Terminal Styling */
.terminal-container {
    background: #121614;
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: 13px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px;
    line-height: 1.6;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
}

.term-line {
    margin-bottom: 6px;
}

.term-line.highlight {
    color: #82a088;
    font-weight: bold;
}

.term-line.success {
    color: #4ade80;
}

.term-line.info {
    color: #94a3b8;
}

.term-line.user-cmd {
    color: #f1f5f9;
    font-weight: bold;
}

.term-line.error {
    color: #f87171;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.terminal-input-row .prompt {
    color: #4a5d4e;
    font-weight: bold;
}

#term-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 13px;
}

/* Media Player Layout */
.player-container {
    display: flex;
    height: 100%;
    background: rgba(248, 249, 250, 0.95);
    color: var(--text-dark);
}

.player-main {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.album-art-wrap {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    margin-bottom: 16px;
}

.album-art-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-meta {
    text-align: center;
    margin-bottom: 16px;
}

.track-meta h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.track-meta p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.progress-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 16px;
}

.progress-wrap input[type="range"] {
    flex: 1;
    accent-color: var(--olive-primary);
    cursor: pointer;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ctrl-btn {
    background: var(-olive-light);
    border: none;
    color: var(--olive-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.ctrl-btn:hover {
    background: var(--olive-primary);
    color: #fff;
    transform: scale(1.08);
}

.play-btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
    background: var(--olive-primary);
    color: #fff;
}

.player-playlist {
    width: 240px;
    padding: 18px;
    overflow-y: auto;
    background: #ffffff;
}

.player-playlist h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

#playlist-list {
    list-style: none;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.playlist-item:hover {
    background: var(--olive-light);
    color: var(--olive-primary);
    font-weight: 700;
}

.track-num {
    font-family: var(--font-mono);
    font-size: 11px;
    opacity: 0.5;
}


/* Widgets Layout Grid */
.widgets-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 16px;
    background: rgba(248, 249, 250, 0.92);
    height: 100%;
    overflow-y: auto;
}

.widget-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.widget-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--olive-primary);
    margin-bottom: 10px;
}

/* Clock Widget */
.big-time {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
}

.full-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Metrics Bar Widget */
.stat-bar-group {
    margin-bottom: 10px;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.bar-bg {
    height: 6px;
    background: var(--olive-light);
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--olive-primary);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Memo Widget */
#widget-memo {
    width: 100%;
    height: 90px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 8px;
    font-family: var(--font-main);
    font-size: 12px;
    outline: none;
    resize: none;
    background: #fafafa;
}

#widget-memo:focus {
    border-color: var(--olive-primary);
}

/* Quote Widget */
.quote-text {
    font-size: 12px;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.5;
}

.quote-author {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    display: block;
}

/* Guess The Number Styling */
.gn-container {
    padding: 20px;
    background: rgba(248, 249, 250, 0.95);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

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

.gn-badge {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-dark);
}

.gn-icon-btn {
    background: var(--olive-light);
    border: none;
    color: var(--olive-primary);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.gn-icon-btn:hover {
    background: var(--olive-primary);
    color: #fff;
}

/* Feedback Box */
.gn-feedback-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.gn-feedback-box.higher {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.gn-feedback-box.lower {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.gn-feedback-box.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.gn-feedback-box.danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* Form Controls */
.gn-input-wrap {
    display: flex;
    gap: 10px;
}

#gn-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 14px;
    outline: none;
    background: #fff;
}

#gn-input:focus {
    border-color: var(--olive-primary);
}

.gn-btn {
    background: var(--olive-primary);
    color: #fff;
    border: none;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.gn-btn:hover {
    background: var(--olive-hover);
}

.gn-btn:disabled,
#gn-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* History Tags */
.gn-history-wrap {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gn-history-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.gn-history-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gn-empty-hint {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.gn-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
}

.gn-tag.higher {
    background: #dbeafe;
    color: #1e40af;
}

.gn-tag.lower {
    background: #ffedd5;
    color: #c2410c;
}

.gn-tag.correct {
    background: #dcfce7;
    color: #15803d;
}

.ttt-container {
    padding: 20px;
    background: rgba(248, 249, 250, 0.95);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

.ttt-scoreboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.score-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 8px;
    text-align: center;
}

.score-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
}

.score-val {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

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

.ttt-status {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.ttt-reset-btn {
    background: var(--olive-light);
    border: none;
    color: var(--olive-primary);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ttt-reset-btn:hover {
    background: var(--olive-primary);
    color: #fff;
}

.ttt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    flex: 1;
}

.ttt-cell {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.ttt-cell:hover:not(taken) {
    background: var(--olive-light);
    transform: scale(1.02);
}

.ttt-cell.taken.x {
    color: var(--olive-primary);
}

.ttt-cell.taken.o {
    color: #c2410c;
}

.ttt-cell.winning-cell {
    background: #dcfce7;
    border-color: #86efac;
    animation: pulse 0.6s ease infinite alternate;
}

.calc-container {
    padding: 18px;
    background: rgba(248, 249, 250, 0.6);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

.calc-screen {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.calc-history {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    min-height: 18px;
}

.calc-main {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    word-break: break-all;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    flex: 1;
}

.calc-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.calc-btn:hover {
    background: var(--olive-light);
    border-color: rgba(74, 93, 78, 0.2);
    transform: translateY(-2px);
}

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

.calc-btn-op {
    background: #f1f5f9;
    color: var(--olive-primary);
}

.calc-btn.action {
    background: #fef2f2;
    color: #dc2626;
}

.calc-btn.equals {
    background: var(--olive-primary);
    color: #ffffff;
}

.calc-btn.equals:hover {
    background: var(--olive-hover);
}

.contact-container {
    padding: 20px;
    background: rgba(248, 249, 250, 0.96);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

.contact-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.contact-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--olive-primary);
    flex-shrink: 0;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.contact-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.contact-status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #f0fdf4;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 6px;
}

.contact-grid {
    display: grid;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 12px 14px;
    transition: all 0.15s ease;
}

.contact-card.hover {
    border-color: rgba(74, 93, 78, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.contact-icon {
    font-size: 20px;
}

.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.contact-handle {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.contact-actions {
    display: flex;
    gap: 6px;
}

.contact-btn {
    background: var(--olive-light);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: var(--olive-primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

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

.contact-footer-note {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    padding: 6px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.showcase-container {
    display: flex;
    height: 100%;
    background: rgba(248, 249, 250, 0.96);
}

.showcase-sidebar {
    width: 230px;
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    padding: 16px;
    flex-direction: column;
}

.showcase-sidebar-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.showcase-item:hover {
    background: var(--olive-light);
    border-color: rgba(74, 93, 78, 0.15);
}

.showcase-item.active {
    background: var(--olive-light);
    border-color: var(--olive-primary);
}

.showcase-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.showcase-item-cat {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.showcase-main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    gap: 16px;
}

.showcase-gallery-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.showcase-main-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.showcase-thumbs {
    display: flex;
    gap: 10px;
}

.showcase-thumb {
    width: 70px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.15s ease;
}

.showcase-thumb:hover {
    opacity: 0.9;
}

.showcase-thumb.active {
    border-color: var(--olive-primary);
    opacity: 1;
}

.showcase-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.showcase-title-row h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.showcase-btn {
    background: var(--olive-primary);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.showcase-btn:hover {
    background: var(--olive-hover);
}

.showcase-desc {
    font-size: 12px;
    color: var(--text-dark);
    line-height: 1.6;
}

.showcase-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.showcase-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    background: var(--olive-light);
    color: var(--olive-primary);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* Gallery Layout */
.gallery-container {
    display: flex;
    height: 100%;
    background: rgba(248, 249, 250, 0.96);
    position: relative;
}

/* Sidebar Folders */
.gallery-sidebar {
    width: 200px;
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.gallery-folder-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: #fafafa;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.gallery-folder-btn:hover {
    background: var(--olive-light);
    border-color: rgba(74, 93, 78, 0.2);
}

.gallery-folder-btn.active {
    background: var(--olive-light);
    border-color: var(--olive-primary);
}

.folder-icon {
    font-size: 18px;
}

.folder-info {
    display: flex;
    flex-direction: column;
}

.folder-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.folder-count {
    font-size: 11px;
    color: var(--text-muted);
}

/* Main Uncropped Gallery Masonry Grid */
.gallery-main {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
}

.gallery-grid {
    column-count: 3;
    /* Multi-column masonry layout */
    column-gap: 14px;
    /* Space between columns */
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 14px;
    /* Space between stacked images */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    width: 100%;
    height: auto;
    /* Displays full image height without square cropping */
    display: block;
}

/* Wide Lightbox Modal */
.gallery-lightbox {
    position: absolute;
    inset: 0;
    background: rgba(18, 22, 20, 0.92);
    backdrop-filter: blur(12px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.2s ease;
}

.gallery-lightbox.hidden {
    opacity: 0;
    pointer-events: none;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-mono);
}

.lightbox-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close-btn:hover {
    color: #f87171;
}

.logbook-container {
    padding: 20px;
    background: rgba(248, 249, 250, 0.96);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    overflow-y: auto;
}

.logbook-form-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.logbook-form-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--olive-primary);
    margin-bottom: 12px;
}

#logbook-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#log-title {
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 13px;
    outline: none;
    font-weight: 600;
}

#log-content {
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 12px;
    height: 70px;
    outline: none;
    resize: none;
}

#log-title:focus,
#log-content:focus {
    border-color: var(--olive-primary);
}

.logbook-submit-btn {
    align-self: flex-end;
    background: var(--olive-primary);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.logbook-submit-btn:hover {
    background: var(--olive-hover);
}

.logbook-notes-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logbook-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.logbook-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logbook-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.logbook-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.logbook-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.logbook-card-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.logbook-card-content {
    font-size: 12px;
    color: var(--text-dark);
    line-height: 1.5;
    white-space: pre-wrap;
}