/* ========== DESIGN SYSTEM & VARIABLES ========== */
:root {
    /* Brand colors for Blue Cheese Inventory system */
    --background-color: #e9e9eb;
    --text-color: #1f1f1f;
    --blue-cheese-blue: #0000FF;      /* Primary brand color */
    --blue-cheese-yellow: #FFFF00;    /* Secondary accent color */
    --light-gray: #d9d9dc;
    --card-border: #b6b6bb;
}

/* ========== GLOBAL STYLES ========== */
body {
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

.content:has(.auth-page) {
    /* Full-screen layout for auth pages (login), no max-width constraint */
    max-width: none;
    margin: 0;
    padding: 0;
}

/* ========== COMMON COMPONENT CLASSES ========== */
/* Card components with borders */
.pc {
    border: 1px solid var(--card-border);
    border-radius: 12px;
}

/* Card modifiers: background color */
.pc-m {
    background: #f3f3f5;    /* Medium background */
}

.pc-s {
    background: #fff;      /* Surface/white background */
}

/* Reusable form container styles */
.surface-form {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========== BUTTON SYSTEM ========== */
/* Base button styling with animation states */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease;
}

.btn-p {
    /* rounded button */
    border-radius: 999px;
}

.btn-b {
    /* Blue button variant - primary action */
    background: var(--blue-cheese-blue);
    color: #fff;
    border: none;
}

.btn-y {
    /* Yellow button variant - secondary action */
    background: var(--blue-cheese-yellow);
    color: var(--blue-cheese-blue);
    border: none;
}

.btn-br {
    /* Button with blue border (outline style) */
    border: 2px solid var(--blue-cheese-blue);
}

.btn-g {
    background: transparent;
    color: var(--blue-cheese-blue);
}

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: clamp(10px, 2vh, 24px) 20px clamp(14px, 3vh, 48px);
    background-image:
        linear-gradient(135deg, rgba(0, 0, 255, 0.58) 0%, rgba(0, 0, 0, 0.42) 52%, rgba(255, 255, 0, 0.2) 100%),
        url("images/Team_Picture.JPG");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-color: #0f1018;
}

.auth-page::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 16px;
    width: clamp(58px, 7vw, 84px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9) url("images/blue_cheese_logo.png") center / cover no-repeat;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
    z-index: 2;
}

.auth-page-title {
    margin: 0;
    color: var(--blue-cheese-blue);
    font-size: clamp(42px, 5vw, 62px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.auth-card {
    width: min(100%, 480px);
    margin: auto 0;
    gap: 12px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.08);
}

.auth-copy {
    margin: 0 0 6px;
    color: #4f4f53;
    font-size: 16px;
    text-align: center;
}

.auth-card label {
    font-size: 16px;
    font-weight: 700;
    color: #4a4a4d;
}

.auth-card input {
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #b9b9bf;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card input:focus {
    outline: none;
    border-color: var(--blue-cheese-blue);
    box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.12);
}

.auth-card .login-submit {
    margin-top: 6px;
    padding: 13px 16px;
    font-size: 17px;
    font-weight: 800;
}

.login-error {
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(163, 10, 10, 0.08);
    color: #a30a0a;
    font-size: 15px;
    font-weight: 600;
}

/* ========== NAVIGATION ========== */
/* Main top navigation bar with branding */

.top-nav {
    background: var(--blue-cheese-blue);
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    font-family: "Eras Bold ITC", "Eras Demi ITC", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.brand-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--blue-cheese-yellow);
    font-family: "Eras Bold ITC", "Eras Demi ITC", "Segoe UI", Arial, sans-serif;
}

.top-links {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.top-links a {
    color: var(--blue-cheese-blue);
    font-size: 20px;
    text-decoration: none;
    font-weight: 700;
    font-family: "Eras Bold ITC", "Eras Demi ITC", "Segoe UI", Arial, sans-serif;
    background: var(--blue-cheese-yellow);
    border-radius: 12px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s ease;
}

.inline-form {
    margin: 0;
}

.top-links .nav-btn {
    border: none;
    color: var(--blue-cheese-blue);
    font-size: 20px;
    font-weight: 700;
    font-family: "Eras Bold ITC", "Eras Demi ITC", "Segoe UI", Arial, sans-serif;
    background: var(--blue-cheese-yellow);
    border-radius: 12px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s ease;
    cursor: pointer;
}

/* Navigation links with hover effect */
.top-links a:hover {
    filter: brightness(0.9);
}

.top-links .nav-btn:hover {
    filter: brightness(0.9);
}

/* ========== MAIN CONTENT LAYOUT ========== */
/* Center content with max-width constraint */
.content {
    max-width: 1240px;
    margin: 24px auto 40px;
    padding: 0 24px;
}

/* ========== SEARCH & FILTER CONTROLS ========== */
.cr,
.fr {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cr {
    gap: 16px;
    margin-bottom: 14px;
}

.sb {
    width: 100%;
    max-width: 760px;
    background: var(--light-gray);
    border-radius: 32px;
    display: flex;
    align-items: center;
    padding: 12px 20px;
}

.sb input {
    width: 100%;
    border: none;
    background-color: transparent;
    font-size: 20px;
    outline: none;
}

.add-item-link {
    font-size: 16px;
    font-weight: 600;
    padding: 10px 18px;
}

.fr {
    gap: 12px;
    margin-bottom: 16px;
}

.fc {
    border: 2px solid var(--blue-cheese-blue);
    border-radius: 16px;
    background: #f3f3f5;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    min-width: 170px;
}

.fc span {
    color: var(--blue-cheese-blue);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.fc input,
.fc select {
    border: 1px solid #c8c8cc;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 14px;
    background: #fff;
    color: var(--text-color);
}

.frg {
    display: flex;
    gap: 8px;
}

/* ========== INVENTORY ITEM GRID ========== */
/* Fixed 3-column layout for item cards */
.item-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 40px;
}

.item-card {
    width: 100%;
    min-width: 0;
}

.co-page {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: start;
}

.co-left {
    flex: 1 1 390px;
    min-width: 320px;
}
/* ========== CHECKOUT CONTROLS & FILTERS ========== */

.co-right {
    flex: 1 1 0;
    min-width: 320px;
}

.co-controls {
    justify-content: flex-start;
    margin-bottom: 10px;
}

.co-search {
    max-width: 100%;
}

.co-filters {
    justify-content: flex-start;
    margin-bottom: 10px;
}

.co-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

/* ========== CHECKOUT ITEM CARDS ========== */
/* Draggable item cards in checkout list */
.co-card {
    padding: 10px;
    cursor: grab;
}

.co-card.dragging {
    opacity: 0.55;
}

.co-card.depleted {
    opacity: 0.6;
    cursor: not-allowed;
}

.co-card-head h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.co-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.co-card-meta p {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
}

.co-card-head p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.co-qty {
    margin-top: 8px;
    background: var(--blue-cheese-blue);
    border-radius: 20px;
    display: flex;
    align-items: center;
    min-height: 34px;
}

.co-qty button {
    border: none;
    background: transparent;
    color: #fff;
    width: 36px;
    height: 34px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 36px;
}

.co-qty button:disabled {
    opacity: 0.45;
    cursor: default;
}

.co-qty input {
    border: none;
    background: transparent;
    color: #fff;
    text-align: center;
    font-size: 18px;
    width: 100%;
    padding: 0;
    flex: 1 1 auto;
}

/* ========== CHECKOUT DROP ZONE ========== */
/* Main area where users drag items to be checked out */
.co-drop-zone {
    border: 1px solid #9b9b9f;
    border-radius: 14px;
    min-height: 520px;
    background: #efefef;
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.co-drop-zone.over {
    border-color: var(--blue-cheese-blue);
}

.co-drop-placeholder {
    margin: auto;
    width: min(420px, 92%);
    border: 2px dashed #c6c6c8;
    border-radius: 16px;
    text-align: center;
    padding: 42px 20px;
    color: #c4c4c6;
    font-size: 26px;
    font-style: italic;
}

.co-picked-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.picked-item {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid #d0d0d3;
    border-radius: 10px;
    background: #fafafa;
    padding: 8px 10px;
}

.picked-item-name {
    flex: 1 1 auto;
    min-width: 0;
}

.picked-item-qty,
.picked-item-remove {
    flex: 0 0 auto;
}

.picked-item-name {
    font-size: 16px;
    color: #444;
}

.picked-item-qty {
    color: var(--blue-cheese-blue);
    font-weight: 700;
}

.picked-item-remove {
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    font-size: 15px;
    width: 22px;
    height: 22px;
    line-height: 1;
}

.co-meta-fields {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.co-meta-field {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 16px;
}

.co-meta-field span {
    min-width: 150px;
    font-weight: 600;
}

.co-meta-field input {
    flex: 1;
    min-width: 0;
    border: 1px solid #c8c8cc;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 14px;
    background: #fff;
    color: var(--text-color);
    outline: none;
}

.co-meta-field input:focus {
    border-color: var(--blue-cheese-blue);
}

.co-submit-btn {
    margin-top: 10px;
    align-self: flex-end;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 16px;
}

.co-submit-btn:hover {
    filter: brightness(0.9);
}

.co-bundles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.co-bundles select {
    flex: 1 1 240px;
}

.co-bundles input {
    flex: 0 0 90px;
}

.co-bundles button {
    flex: 0 0 auto;
}

.co-bundles select,
.co-bundles input {
    border: 1px solid #b3b3b8;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
}

.co-bundles button {
    border: 1px solid var(--blue-cheese-blue);
    border-radius: 999px;
    background: var(--blue-cheese-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 0 14px;
    cursor: pointer;
}

/* ========== BUNDLES PAGE ========== */
/* Layout and controls for creating and listing checkout bundles */
.bundles-page {
    max-width: 900px;
    margin: 0 auto;
}

.bundle-create-form {
    margin: 24px auto 18px;
}

.bundle-create-form label {
    font-size: 18px;
    font-weight: 600;
}

.bundle-create-form input,
.bundle-create-form select {
    font-size: 16px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #b5b5b5;
}

.bundle-create-form button {
    font-size: 16px;
    padding: 10px 18px;
}

.bundle-create-form h2 {
    margin: 2px 0 0;
    color: #4a4a4d;
}

.bundle-help {
    margin: 0 0 8px;
    color: #555;
}

.bundle-table-wrap {
    overflow-x: auto;
    padding: 8px;
    margin-bottom: 10px;
}

.bundle-item-table {
    width: 100%;
    border-collapse: collapse;
}

.bundle-item-table th,
.bundle-item-table td {
    border-bottom: 1px solid #d4d4d9;
    padding: 8px 10px;
    text-align: left;
    font-size: 14px;
}

.bundle-item-table th {
    background: #f3f3f5;
    color: var(--blue-cheese-blue);
}

.bundle-item-table input {
    width: 90px;
    border: 1px solid #b8b8be;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 13px;
}

.bundle-list-section h2 {
    margin: 0 0 8px;
}

.bundle-list-section {
    margin: 16px auto 24px;
}

.bundle-delete-btn {
    padding: 7px 12px;
    font-size: 13px;
}

.bundle-delete-btn:hover {
    filter: brightness(0.9);
}

.page-title {
    margin: 0 0 14px;
    font-size: 30px;
    color: #4a4a4d;
}

.page-filters {
    justify-content: flex-start;
    margin-bottom: 12px;
}

.page-filters .fc {
    min-width: 220px;
}

.page-empty {
    margin: 0;
    color: #666;
    font-size: 16px;
}

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

/* ========== CHECKOUT HISTORY PAGE ========== */
/* Cards and controls for viewing and returning checked-out items */
.history-card {
    padding: 12px;
}

.history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.history-head h2 {
    margin: 0;
    font-size: 20px;
}

.history-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.history-checkin-btn {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
}

.history-checkin-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.history-checkin-status {
    color: #1a7d2c;
    font-size: 13px;
    font-weight: 700;
}

.history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 8px;
}

.history-meta p {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 220px;
}

.history-meta p {
    margin: 0;
    font-size: 14px;
    color: #5a5a5a;
}

.history-meta span,
.history-items > span {
    font-weight: 700;
    color: #4f4f53;
}

.history-items ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.history-items li {
    margin: 2px 0;
    font-size: 14px;
    color: #444;
}

.history-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.history-item-text {
    flex: 1 1 320px;
}

.history-item-return-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-item-return-qty {
    width: 72px;
    border: 1px solid #a0a0a5;
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 13px;
}

.history-item-return-btn {
    border: 1px solid #1a7d2c;
    background: #1a7d2c;
    color: #fff;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    cursor: pointer;
}

.history-item-return-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ========== ITEM CARDS (INVENTORY & HISTORY) ========== */
/* Individual item card styling */
.item-card {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.item-card--out-of-stock {
    background: #fff4f4;
    border-color: #d67d7d;
}

.item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.item-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.item-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.item-left h2 {
    margin: 0;
    font-size: 20px;
    word-break: break-word;
}

.item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.item-details p {
    margin: 0;
    flex: 1 1 calc(50% - 12px);
    min-width: 0;
    font-size: 14px;
    color: #6d6d6d;
    line-height: 1.35;
}

.item-details span {
    color: #5a5a5a;
    display: inline-block;
    min-width: 82px;
    font-weight: 600;
}

.item-stock-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(214, 125, 125, 0.15);
    color: #a03131;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

/* ========== ADMIN PAGE ========== */
/* User-management layout and action controls for admin screens */
.admin-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-card {
    justify-content: flex-start;
    min-width: 0;
}

.admin-card h2 {
    margin: 0 0 2px;
    color: #4a4a4d;
}

.admin-card .btn {
    align-self: flex-start;
    margin-top: 4px;
    padding: 10px 16px;
}

.admin-table-section {
    max-width: 1000px;
}

.admin-table th:last-child,
.admin-table td:last-child {
    width: 140px;
}

.inline-delete-form {
    margin: 0;
}

.inline-delete-form .btn {
    padding: 6px 12px;
    font-size: 13px;
}

.table-muted {
    color: #8a8a90;
}

.item-details .item-detail-qty {
    flex-basis: 100%;
    text-align: center;
}

.item-details .item-stock-status {
    flex-basis: 100%;
    margin-top: 4px;
    text-align: center;
    color: #c62828;
    font-weight: 700;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== DELETE ICON BUTTON ========== */
/* Styled trashcan icon for item deletion */
.delete-icon {
    border: 1px solid #c9c9cf;
    background: #fff;
    color: #5a5a5a;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.delete-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.delete-icon:hover {
    background: #f4f4f6;
    color: #2f2f2f;
    border-color: #9f9fa5;
}

/* ========== DIALOGS & POPUPS ========== */
/* Reusable overlay containers for add/update/delete dialogs */
.m {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1200;
}

.m.open {
    display: flex;
}

.pp {
    background: #dbdbdd;
    border: 1px solid #6f6f73;
    border-radius: 14px;
}

.pp-d {
    width: 100%;
    max-width: 580px;
    padding: 36px 30px 22px;
    text-align: center;
}

.pp-d h2 {
    margin: 0 0 24px;
    font-size: 22px;
    color: #5f5f63;
}

.pp-as {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.pp-b {
    min-width: 160px;
    border-radius: 26px;
    font-size: 18px;
    padding: 10px 16px;
}

.pp-a {
    width: 100%;
    max-width: 560px;
    padding: 18px 20px 20px;
    position: relative;
}

.pp-a h2 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 34px;
    color: #666;
    text-decoration: underline;
}

.close-x {
    position: absolute;
    top: 6px;
    right: 10px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 30px;
    cursor: pointer;
}

.pp-f {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
}

.pp-f > label,
.pp-f > input,
.pp-f > select,
.pp-f > .qty-row,
.pp-f > .qty-control,
.pp-f > .submit-add {
    flex: 1 1 calc(50% - 16px);
    min-width: 0;
}

.pp-f > .qty-row,
.pp-f > .qty-control,
.pp-f > .submit-add {
    flex-basis: 100%;
}

.qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-row > label {
    flex: 0 0 auto;
    margin: 0;
}

.qty-row .qty-control {
    flex: 1 1 auto;
}

.pp-f label {
    font-size: 17px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.pp-f input,
.pp-f select,
.pp-f textarea {
    font-size: 17px;
    border: none;
    border-bottom: 2px solid #8b8b8f;
    background: transparent;
    outline: none;
    padding: 6px 2px;
}

.qty-control {
    background: var(--blue-cheese-blue);
    border-radius: 28px;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.qty-control button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    flex: 0 0 44px;
}

.qty-control input {
    border: none;
    background: transparent;
    text-align: center;
    color: #fff;
    font-size: 22px;
    width: 100%;
    padding: 0;
    flex: 1 1 auto;
}

.pp-f select {
    background: var(--blue-cheese-yellow);
    border: 2px solid var(--blue-cheese-blue);
    border-radius: 24px;
    color: var(--blue-cheese-blue);
    font-weight: 700;
    padding: 6px 14px;
}

.pp-f textarea {
    resize: vertical;
    min-height: 34px;
}

.submit-add {
    justify-self: end;
    margin-left: auto;
    flex: 0 0 auto;
    background: var(--blue-cheese-blue) !important;
    color: var(--blue-cheese-yellow) !important;
    border-color: var(--blue-cheese-yellow) !important;
}

/* ========== SHARED FORM UTILITIES ========== */
/* Generic form spacing and feedback styles used across pages */
.content > form {
    max-width: 600px;
    margin: 24px auto;
}

.content > form label {
    font-size: 18px;
    font-weight: 600;
}

.form-success {
    margin: 0;
    color: #0c6e29;
    font-size: 15px;
}

input,
select,
button {
    font-family: inherit;
}

.content > form input,
.content > form select {
    font-size: 16px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #b5b5b5;
}

.content > form button {
    font-size: 16px;
    padding: 10px 18px;
}

/* ========== ADMIN USER TABLE ========== */
/* Table styles for listing and removing admin users */
.user-list-section {
    max-width: 600px;
    margin: 16px auto 24px;
}

.user-list-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th,
.user-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e3e3e7;
    text-align: left;
}

.user-table thead th {
    background: #f3f3f5;
    color: var(--blue-cheese-blue);
}

/* ========== RESPONSIVE BREAKPOINT: TABLET ========== */
/* Stacks nav, filters, and checkout columns for medium screens */
@media (max-width: 1100px) {
    .auth-page {
        min-height: auto;
        padding: 24px 20px 40px;
    }

    .top-nav {
        min-height: 0;
        padding: 12px 20px;
        flex-direction: column;
        gap: 10px;
    }

    .cr,
    .fr {
        justify-content: center;
    }

    .fr {
        align-items: stretch;
    }

    .fc {
        min-width: 240px;
        max-width: 100%;
    }

    .sb {
        width: 100%;
    }

    .item-top {
        flex-wrap: wrap;
    }

    .item-actions {
        justify-content: flex-start;
    }

    .item-top-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .item-details {
        flex-direction: column;
    }
    .pp-f {
        flex-direction: column;
        align-items: stretch;
    }

    .co-page {
        flex-direction: column;
    }

    .co-drop-zone {
        min-height: 360px;
    }

    .submit-add {
        align-self: stretch;
        margin-left: 0;
    }
}

/* ========== RESPONSIVE BREAKPOINT: SMALL TABLET ========== */
/* Tightens auth spacing and typography for narrower displays */
@media (max-width: 720px) {
    .auth-card {
        padding: 22px;
        border-radius: 22px;
    }

    .auth-page-title {
        font-size: 32px;
    }

    .auth-copy {
        font-size: 15px;
    }
}

/* ========== RESPONSIVE BREAKPOINT: MOBILE ========== */
/* Converts dense controls into full-width vertical layouts */
@media (max-width: 720px) {
    .content {
        margin-top: 16px;
    }

    .top-links {
        gap: 16px;
    }

    .cr {
        align-items: stretch;
    }

    .fr {
        flex-direction: column;
        gap: 10px;
    }

    .fc {
        width: 100%;
        min-width: 0;
    }

    .sb {
        border-radius: 18px;
        padding: 10px 14px;
    }

    .item-card {
        border-radius: 12px;
    }

    .co-meta-field {
        flex-direction: column;
        align-items: stretch;
    }

    .co-meta-field span {
        min-width: 0;
    }

    .co-bundles {
        flex-direction: column;
    }

    .co-bundles button {
        min-height: 36px;
    }
}
