/* FROM store_copy/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: "Courier New", Courier, monospace; /* Terminal font */
    color: #33ff33; /* Classic terminal green */
    height: 100%;
    overflow: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 6vh;
    background-color: transparent;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 12px;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6vh;
    background-color: transparent;
    z-index: 1000;
}

.auth-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-status {
    font-size: 0.8em;
    color: #888;
}

.auth-bar input {
    background: #111;
    border: 1px solid #333;
    color: #33ff33;
    font-family: inherit;
    padding: 2px 6px;
    min-width: 140px;
}

.auth-bar button {
    background: #333;
    color: #33ff33;
    border: none;
    cursor: pointer;
    padding: 2px 8px;
    font-family: inherit;
}

.auth-bar button:hover {
    background: #444;
}

.container {
    display: flex;
    width: 100%;
    height: 88vh;
    margin-top: 6vh;
    margin-bottom: 6vh;
}

.left,
.right {
    flex: 0 0 24%;
    background-color: transparent;
}

.middle {
    flex: 0 0 52%;
    background-color: #000000; /* Darker black for the terminal window */
    border: 2px solid grey; /* Green border */
    padding: 20px;
    overflow-y: auto;
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.middle .shelf-1 {
    width: 100%;
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center; /* center vertically if needed */
    overflow: hidden; /* prevent any visible overflow */
    padding: 10px 0;
}

.middle .shelf-1 pre {
    display: block;
    white-space: pre; /* preserve ASCII spacing */
    overflow: hidden; /* hide any remaining overflow */
    transform-origin: center;
    margin: 0 auto;
    line-height: 1.02;
    letter-spacing: -0.4px;
    font-size: clamp(6px, calc((52vw) / 164), 18px);
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* FROM store_copy/index.html <style> */
.progress-container {
    width: 100%;
    height: 20px;
    background-color: #1a1a1a;
    border: 1px solid #33ff33;
    margin-top: 5px;
    display: flex;
}

.bar-segment {
    height: 100%;
    transition: width 0.3s ease;
}

.bar-lectures {
    background-color: #33ff33;
} /* Green */
.bar-practice {
    background-color: #33ccff;
} /* Cyan */
.bar-pyq {
    background-color: #ff3333;
} /* Red */

/* Item List Styles */
.item-list {
    margin-top: 10px;
    font-size: 0.9em;
}

.item {
    cursor: pointer;
    padding: 2px 0;
    display: flex;
    align-items: center;
}

.item:hover {
    background-color: rgba(51, 255, 51, 0.1);
}

.item.completed {
    text-decoration: line-through;
    color: #666;
}

.item-checkbox {
    margin-right: 8px;
    color: #33ff33;
}

.item-delete {
    margin-left: auto;
    color: #ff3333;
    font-size: 0.8em;
    opacity: 0.6;
    padding: 0 5px;
}

.item-delete:hover {
    opacity: 1;
    font-weight: bold;
}

.add-controls {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dotted #333;
    display: flex;
    gap: 5px;
}

.add-controls input {
    background: #111;
    border: 1px solid #333;
    color: #33ff33;
    font-family: inherit;
    padding: 2px 5px;
    flex-grow: 1;
}

.add-controls select {
    background: #111;
    border: 1px solid #333;
    color: #33ff33;
    font-family: inherit;
}

.add-controls button {
    background: #333;
    color: #33ff33;
    border: none;
    cursor: pointer;
    padding: 2px 8px;
    font-family: inherit;
}

.add-controls button:hover {
    background: #444;
}

.course-header {
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    border-bottom: 1px dashed #33ff33;
    padding-bottom: 2px;
}

/* Shelf Layout adjustments */
.shelf-courses,
.shelf-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

.course-card {
    border: 1px solid #333;
    padding: 10px;
    width: 100%; /* Default to full width for list style, or 48% for grid */
    margin-bottom: 1rem;
    min-height: 80px;
}

.course-details {
    border: 1px solid #333;
    padding: 10px;
    width: 100%;
    margin-bottom: 10px;
}

.hidden {
    display: none;
}
