/* CSS for bbs.php */

#header {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 16px auto 12px auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 8px;
}

.menubar {
  font-size: 0.9em;
  background: linear-gradient(135deg, #ffffff 0%, #fff4f6 100%);
  border: 1px solid #f5c2ce;
  border-radius: 24px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(216, 75, 117, 0.08);
}

.menubar .menu-item a,
.menubar a {
  display: inline-block;
  color: #9e2a4f;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  background-color: transparent;
  transition: all 0.2s ease;
}

.menubar .menu-item a:hover,
.menubar a:hover {
  background-color: #ffdbe3;
  color: #7a1d3b;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(216, 75, 117, 0.12);
}

.menubar .menu-item.is-active:not(.menu-switch) a {
  background-color: #ffdbe3;
  color: #7a1d3b;
  font-weight: bold;
}

/* Switch style for Tree / Thread toggle group */
.menubar .menu-switch-group {
  display: inline-flex;
  align-items: center;
  background-color: #fce8ec;
  border: 1px solid #f5c2ce;
  border-radius: 20px;
  padding: 3px;
  margin: 0 4px;
  box-shadow: inset 0 1px 3px rgba(216, 75, 117, 0.08);
}

.menubar .menu-switch-group .menu-item.menu-switch {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  display: inline-block;
}

.menubar .menu-switch-group .menu-item.menu-switch a {
  border-radius: 16px;
  padding: 4px 14px;
  color: #9e2a4f;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.menubar .menu-switch-group .menu-item.menu-switch.is-active a {
  background-color: #d84b75;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(216, 75, 117, 0.3);
  font-weight: bold;
}

.menubar .menu-switch-group .menu-item.menu-switch:not(.is-active) a:hover {
  background-color: rgba(216, 75, 117, 0.12);
  color: #7a1d3b;
}

.menubar .menu-sep {
  color: #f5c2ce;
  font-size: 0.8em;
  padding: 0 2px;
}

.title_block {
  background: linear-gradient(135deg, #fff0f3 0%, #ffe8ec 50%, #ffdbe3 100%);
  border: 1px solid #f5c2ce;
  border-radius: 16px;
  padding: 24px 16px;
  margin: 12px auto 24px auto;
  box-shadow: 0 6px 20px rgba(216, 75, 117, 0.09);
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

.title_block::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

.title_block .title {
  margin-bottom: 6px;
  font-size: 1.8em;
  letter-spacing: 0.02em;
}

.title_block .title a {
  color: #8c2443;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.title_block .title a:hover {
  color: #d84b75;
}

.title_block .subtitle {
  color: #7a4052;
  font-size: 0.95em;
  margin-top: 6px;
  font-weight: 500;
}

#body {
    width: 100%;
    padding: 0px;
    text-align:center;
}

#body .contents {
    margin-left:auto;
    margin-right:auto;
    padding:12px;
    text-align: left;
    border: 1px solid #f0f0f0;
}

.hint {
    font-size: 0.8em;
    color: #707070;
}

.description {
    font-size: 0.6em;
    color: #a0a0a0;
    text-align: center;
}

.desctiption2 {
    font-size: 0.8em;
    color: #909090;
    text-align: left;
}

.item {
    border: 1px solid #f5c2ce;
    background-color: #ffffff;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(216, 75, 117, 0.05);
}

.no-logs {
    padding: 20px 24px;
    text-align: center;
    color: #855b68;
    background-color: #fff8f9;
    font-size: 0.95em;
}

.indexbox {
    position: relative;
    border: 1px solid #f5c2ce;
    background-color: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(216, 75, 117, 0.05);
    margin: 16px 0;
}

.indexbox.is-solved {
    background-color: #f3e9ec;
    border-color: #d8c3c8;
    box-shadow: 0 4px 12px rgba(120, 90, 100, 0.06);
}

.indexbox.is-solved .node:hover {
    background-color: #e6d9dd;
}

.indexbox.is-solved .tree-title {
    color: #6e4652;
}

.indexbox.is-solved .tree-title:hover {
    color: #a84865;
}

.solved-badge {
    position: absolute;
    top: 12px;
    right: 16px;
    background-color: #c48897;
    color: #ffffff;
    font-size: 0.75em;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 12px;
    letter-spacing: 0.03em;
}

.body {
    margin-left: 1.5em;
    font-size: 1em;
    line-height: 1.5em;
    padding: 1em;
}

.itemhead {
    background-color: #ffdbe3;
    color: #7a223c;
    padding: 8px 12px;
    font-weight: 600;
}

.itemhead2 {
    background-color: #ffeef2;
    color: #7a223c;
    padding: 8px 12px;
}

.inputform {
    margin: 16px auto;
    max-width: 800px;
    text-align: left;
    padding: 20px 24px;
    background-color: #fff4f6;
    border: 1px solid #f5c2ce;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(216, 75, 117, 0.06);
}

.inputform-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #a32e54;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f5c2ce;
}

.inputformparent {
    text-align: left;
    width: 100%;
}

.inputformtable {
    text-align: left;
    width: 100%;
}
.inputformtable table {
    margin-left:auto;
    margin-right:auto;
    text-align: left;
}

.inputform .field {
    margin-bottom: 12px;
}

.inputform .mbbs-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.inputform .label {
    color: #632236;
    font-weight: 600;
    margin-bottom: 4px;
}

.inputform textarea,
.inputform input[type="text"],
.inputform input[type="password"],
.inputform select {
    font-size: 1em;
    padding: 8px 12px;
    border: 1px solid #e5b3c0;
    border-radius: 8px;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.inputform input[type="file"] {
    font-size: 0.85em;
    color: #666666;
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid #e5b3c0;
    border-radius: 8px;
    background-color: #ffffff;
    box-sizing: border-box;
}

.inputform input[type="file"]::file-selector-button,
.inputform input[type="file"]::-webkit-file-upload-button {
    font-size: 0.9em;
    padding: 4px 10px;
    border: 1px solid #e5b3c0;
    border-radius: 6px;
    background-color: #fff0f3;
    color: #632236;
    cursor: pointer;
    margin-right: 8px;
}

.inputform textarea:focus,
.inputform input[type="text"]:focus,
.inputform input[type="password"]:focus,
.inputform select:focus,
.inputform input[type="file"]:focus {
    border-color: #d84b75;
    box-shadow: 0 0 0 3px rgba(216, 75, 117, 0.15);
    outline: none;
}

.inputform textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 1em;
    line-height: 1.5em;
    padding: 8px 12px;
}

.inputform select {
    padding: 8px 12px;
}

.inputform input[type="submit"],
.inputform .button.is-info {
    font-size: 1.0em;
    padding: 8px 20px;
    background-color: #d84b75;
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(216, 75, 117, 0.3);
}

.inputform input[type="submit"]:hover,
.inputform .button.is-info:hover {
    background-color: #c23b63;
    color: #ffffff;
}

.inputform input[type="submit"]:active,
.inputform .button.is-info:active {
    transform: translateY(1px);
}

.inputform .file-cta {
    background-color: #ffffff;
    border: 1px solid #e5b3c0;
    border-radius: 8px;
    color: #832742;
}

.inputform .file-cta:hover {
    background-color: #fff0f3;
}


img { border-width: 0px; }

.mbbs-form-error {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 800px;
    margin: 20px auto;
    padding: 16px 20px;
    border: 2px solid #e0526f;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff1f3 0%, #ffdce3 100%);
    color: #8b1832;
    font-size: 1.05em;
    font-weight: 600;
    box-shadow: 0 5px 14px rgba(180, 34, 73, 0.18);
    animation: mbbsFormErrorPopIn 0.3s ease-out;
}

.mbbs-form-error strong {
    color: #a31536;
}

.mbbs-form-error-icon {
    flex: 0 0 auto;
    font-size: 1.5em;
}

@keyframes mbbsFormErrorPopIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 18px auto;
    padding: 16px 24px;
    max-width: 600px;
    width: calc(100% - 32px);
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4ec 100%);
    border: 2px dashed #ff9ebb;
    border-radius: 16px;
    color: #991b47;
    font-size: 1.15rem;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 8px 20px rgba(216, 75, 117, 0.15);
    animation: msgPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
}

.msg .msg-icon {
    font-size: 1.5rem;
    line-height: 1;
    display: inline-block;
    animation: msgBounce 1.2s infinite alternate ease-in-out;
}

.msg .msg-text {
    line-height: 1.4;
    word-break: break-word;
}

@keyframes msgPopIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(-12px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes msgBounce {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(-4px) scale(1.18);
    }
}


.id {
    color: #909090;
    font-size:0.8em;
}

.node {
    width: 100%;
    margin: 2px 0;
    padding: 8px 10px;
    border-bottom: 1px dashed #fae3e8;
    border-radius: 6px;
    transition: background-color 0.2s;
    box-sizing: border-box;
}

.node:hover {
    background-color: #fff5f7;
}

.node:last-child {
    border-bottom: none;
}

.tree-indent {
    color: #e5b3c0;
    font-family: monospace;
    font-size: 0.9em;
}

.tree-title {
    color: #8c2443;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.tree-title:hover {
    color: #d84b75;
    text-decoration: underline;
}

.tree-meta {
    color: #855b68;
    font-size: 0.88em;
}

.root {
    font-weight: bold;
}

.curnode {
    color: #d84b75;
    background-color: #ffeef2;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.itemnode {
    color: #d84b75;
    font-weight: normal;
}

.date {
    font-size: 0.6em;
}

.editlink {
    font-size: 0.7em;
    text-align: right;
}

.pager {
    padding: 0px;
    margin: 4px;
    font-size: 1.0em;
}

.reply {
    color: #0000ff;
}

.thread table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #f5c2ce;
    border-radius: 12px;
    overflow: hidden;
    margin: 12px 0;
    width: 100%;
    box-shadow: 0 4px 12px rgba(216, 75, 117, 0.05);
    background-color: #ffffff;
}

.thread table th {
    background-color: #ffeef2;
    color: #8c2847;
    font-weight: bold;
    text-align: center;
    padding: 10px 12px;
    margin: 0px;
    border-bottom: 2px solid #f5c2ce;
    border-right: 1px solid #f9d8e0;
}

.thread table th:last-child {
    border-right: none;
}

.thread table td {
    border-right: 1px solid #fae3e8;
    border-bottom: 1px solid #fae3e8;
    padding: 10px 12px;
    margin: 0px;
    font-size: 0.92em;
    transition: background-color 0.2s;
}

.thread table td:last-child {
    border-right: none;
}

.thread table tr:last-child td {
    border-bottom: none;
}

.thread table tr:hover td {
    background-color: #fff5f7;
}

.thread-likes {
    white-space: nowrap;
}

.thread-likes-count {
    color: #808080;
    font-size: 0.8em;
}

.new {
    color:#ff0000;
}

.body code {
  color: black;
  font-size: 1.0em;
  background-color: transparent;
}

.log-actions {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.like-form {
    margin: 0;
}

.like-count {
    font-variant-numeric: tabular-nums;
    margin-left: 0.25rem;
}

/* ReadOnly Mode */
.readonly-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    color: #856404;
}

.readonly-notice p {
    margin: 5px 0;
}

.readonly-notice p:first-child {
    font-weight: bold;
    font-size: 1.1em;
}

/* Footer */
#footer {
    margin-top: 36px;
    padding: 24px 0 40px 0;
    font-size: 0.75em;
    text-align: center;
    color: #a07885;
}

.footer-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff8f9;
    border: 1px solid #f8d4dd;
    padding: 6px 18px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(216, 75, 117, 0.04);
}

.footer-links a {
    color: #8c4257;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, opacity 0.2s;
}

.footer-links a:hover {
    color: #d84b75;
    text-decoration: underline;
}

.footer-sep {
    color: #e5b3c0;
    font-size: 0.8em;
}
