/* Bugs app — screen styles. All sizes in rem (root 0.75rem = 12px, set in site.css). */

/* ---------- login ---------- */
#loginWrap {
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 7rem);
}

.loginBox {
    background-color: #fff;
    padding: 3rem;
    border-radius: 0.8rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.15);
    width: 28rem;
    max-width: 90%;
}

.loginBox h1 { text-align: center; margin: 0 0 2rem; color: #001b46; }
.loginBox label { display: block; margin: 1rem 0 0.3rem; font-size: 1.1rem; }
.loginBox input[type=email],
.loginBox input[type=password] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem;
    font-size: 1.2rem;
    border: 0.08rem solid #c5ced8;
    border-radius: 0.4rem;
}

/* ---------- inner header ---------- */
.innerHead {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 96%;
    margin: 1rem auto;
    flex-wrap: wrap;
}
.innerHead h1 { margin: 0; flex: 1 1 auto; width: auto; }
.innerHead .filter { font-size: 1.1rem; }
.innerHead select { font-size: 1.1rem; padding: 0.3rem; }

/* ---------- buttons ---------- */
input[type=button].primary {
    background-color: #0097f1;
    color: #fff;
    border: none;
    padding: 0.7rem 1.6rem;
    font-size: 1.1rem;
    border-radius: 0.4rem;
    cursor: pointer;
}
input[type=button].primary:hover { background-color: #007acc; }
.menuUser { display: block; padding: 1.5rem 3.5rem 0.5rem; color: #9fb3d1; font-size: 1rem; }
#menu input[type=button].logoutBtn { color: #ffd0d0; font-size: 1.1rem; }

/* ---------- generic data table ---------- */
.bugTable { width: 96%; margin: 1rem auto; }
.bugTable tr.clickable, .bugTable tr.clickable td { cursor: pointer; }
.bugTable tbody tr.clickable:hover { background-color: #eaf4fd; }

/* ---------- status badge ---------- */
.statusBadge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 1rem;
    color: #fff;
    font-size: 0.95rem;
    white-space: nowrap;
}
.st-new        { background-color: #6c7a89; }
.st-inprogress { background-color: #f0932b; }
.st-resolved   { background-color: #44bd32; }
.st-closed     { background-color: #2d3436; }
.st-rejected   { background-color: #c0392b; }

/* ---------- forms ---------- */
.bugForm {
    background-color: #fff;
    width: 96%;
    margin: 1rem auto;
    padding: 2rem;
    box-sizing: border-box;
    border-radius: 0.6rem;
    box-shadow: 0 0.2rem 0.6rem rgba(0,0,0,0.08);
    font-size: 1.1rem;
}
.bugForm label { display: block; margin: 1.2rem 0 0.3rem; font-weight: bold; color: #465c74; }
.bugForm label.checkboxLabel { font-weight: normal; }
.bugForm input[type=text],
.bugForm input[type=email],
.bugForm input[type=password],
.bugForm select,
.bugForm textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem;
    font-size: 1.1rem;
    border: 0.08rem solid #c5ced8;
    border-radius: 0.4rem;
    font-family: inherit;
}
.bugForm .hint { font-weight: normal; color: #888; font-size: 0.95rem; }
.bugForm label.emphasize { color: #c0392b; }
.bugForm textarea.emphasize { border: 0.15rem solid #f0b27a; background-color: #fffaf3; }
.formActions { margin-top: 2rem; display: flex; gap: 1rem; }

/* ---------- detail card ---------- */
.detailCard {
    background-color: #fff;
    width: 96%;
    margin: 1rem auto;
    padding: 2rem;
    box-sizing: border-box;
    border-radius: 0.6rem;
    box-shadow: 0 0.2rem 0.6rem rgba(0,0,0,0.08);
    font-size: 1.1rem;
}
.detailCard .meta { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; color: #555; margin-bottom: 1rem; }
.detailCard h3 { color: #465c74; margin: 1.5rem 0 0.5rem; }
.pre { white-space: pre-wrap; line-height: 1.6; margin: 0; }
.attachments { display: flex; gap: 1rem; flex-wrap: wrap; }
.attachments img { height: 8rem; border: 0.08rem solid #ccc; border-radius: 0.4rem; cursor: pointer; }

/* ---------- staff bar ---------- */
.staffBar {
    background-color: #eef3f8;
    width: 96%;
    margin: 1rem auto;
    padding: 1rem 2rem;
    box-sizing: border-box;
    border-radius: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 1.1rem;
}
.staffBar select { font-size: 1.1rem; padding: 0.3rem; }

/* ---------- comments ---------- */
.commentsSection { width: 96%; margin: 1rem auto; }
.commentsSection h3 { color: #465c74; }
.commentList { margin-bottom: 1rem; }
.comment {
    background-color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 0.8rem;
    box-shadow: 0 0.1rem 0.3rem rgba(0,0,0,0.06);
}
.comment .commentHead { color: #0097f1; font-size: 1rem; margin-bottom: 0.4rem; }
.addComment { display: flex; flex-direction: column; gap: 0.6rem; }
.addComment textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem;
    font-size: 1.1rem;
    border: 0.08rem solid #c5ced8;
    border-radius: 0.4rem;
    font-family: inherit;
}
.addComment input[type=button] { align-self: flex-start; }

/* ---------- popups ----------
   site.css hides the OK button (`.popupPanel > input { display:none }`) and blows the text up to
   3rem. Re-show the button and bring the panel back to sane proportions so every popup is closable. */
.popupPanel {
    width: 30rem !important;
    max-width: 90vw;
    left: calc(50% - 15rem) !important;
    top: 30% !important;
    font-size: 1.4rem !important;
    border-radius: 0.6rem !important;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.3);
    padding: 2rem !important;
}
.popupPanel .popUpText { display: block; margin: 0.5rem 0 1.5rem; }
.popupPanel > input,
.popupPanel input[type=button] {
    display: inline-block !important;
    background-color: #0097f1 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0.4rem !important;
    cursor: pointer;
    font-size: 1.3rem !important;
    padding: 0.7rem 2rem !important;
    margin: 0 auto !important;
    width: auto !important;
    min-width: 7rem;
}

/* ---------- auth extras ---------- */
.loginBox .linkBtn {
    background: none; border: none; color: #0097f1; cursor: pointer;
    margin-top: 1rem; font-size: 1rem; text-decoration: underline; display: block; width: 100%;
}
.loginBox .hint { color: #888; font-size: 1rem; margin: 0 0 1rem; }
#menu input[type=button].menuSmall { font-size: 1.1rem; color: #cfe0f5; padding-top: 1rem; padding-bottom: 1rem; }

/* ---------- search + attachment-add ---------- */
.innerHead .searchBox {
    padding: 0.4rem 0.6rem; font-size: 1.1rem; border: 0.08rem solid #c5ced8; border-radius: 0.4rem;
}
.addAttachment { width: 96%; margin: 1rem auto; background: #fff; padding: 1.5rem; border-radius: 0.6rem; box-shadow: 0 0.1rem 0.3rem rgba(0,0,0,0.06); }
.addAttachment h3 { color: #465c74; margin: 0 0 1rem; }
.addAttachment input[type=button] { margin-top: 0.8rem; }

/* ---------- misc ---------- */
.empty { color: #888; width: 96%; margin: 1rem auto; font-size: 1.1rem; }
.ImageField img { max-height: 8rem; display: block; margin-bottom: 0.5rem; }
.ImageField img[src='data:image/png;base64,'] { display: none; }
