.account-container {
    background: #000;
    border: 1px solid #333;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    padding: 1rem;
    margin: 0 auto;
    font-family: monospace;
    box-shadow: 0 0 0 1px #333;
}

.account-header {
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.account-header h1 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    align-self: center;
}

.account-header p {
    color: #aaa;
    font-size: 0.9rem;
}

.info-card {
    background: #111;
    border: 1px solid #333;
    padding: 1rem;
    margin-bottom: 1rem;
}

.section-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

.info-row {
    display: flex;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #222;
}

.info-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-label {
    flex: 1;
    color: #fff;
    font-weight: bold;
}

.info-value {
    flex: 2;
    color: #ccc;
}

.connection-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border: 1px solid #333;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
    background: #222;
}

.badge-discord {
    color: #999;
}

.badge-google {
    color: #999;
}

.badge-email {
    color: #999;
}

.password-form {
    background: #111;
    border: 1px solid #333;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.password-form form {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.password-form .form-group {
    width: 100%;
    text-align: center;
}

.password-form label,
.password-form input,
.password-form small {
    display: block;
    width: 100%;
    text-align: left;
    color: #ccc;
}

.password-form input[type="password"] {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #333;
    background-color: #000;
    color: #fff;
    font-family: monospace;
    margin: 0.5rem 0;
    box-sizing: border-box;
}

.password-form input[type="password"]:focus {
    outline: 1px solid #555;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    font-weight: normal;
    display: inline-block;
    text-align: center;
    border: 1px solid #333;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: monospace;
    background: #222;
    color: #fff;
    min-width: 120px;
}

.btn:hover {
    background: #333;
    border-color: #555;
}

.btn-primary {
    border-color: #444;
}

.btn-danger {
    border-color: #444;
}

/* Terminal Style CSS */
body {
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    text-align: center;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: #aaa;
}

a:hover {
    text-decoration: underline;
}

img {
    margin-top: 20px;
    max-width: 100%;
    border: 1px solid #333;
}

/* Container */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1000px;
    padding: 1rem;
    background: #111;
    border: 1px solid #333;
    margin: 1rem;
    font-family: monospace;
}

/* Headings */
h1 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 1.5rem 0;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    width: 100%;
}

/* Paragraphs */
p {
    font-size: 0.9rem;
    margin: 1rem 0;
    color: #aaa;
    text-align: center;
    width: 100%;
    align-self: center;
}

/* Forms */
form {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 400px;
}

/* Inputs */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
    padding: 0.6rem;
    border: 1px solid #333;
    background-color: #000;
    color: #fff;
    font-size: 0.9rem;
    width: 100%;
    font-family: monospace;
    box-sizing: border-box;
}

input[type="submit"],
input[type="button"] {
    background: #222;
    color: #fff;
    border: 1px solid #333;
    padding: 0.6rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: monospace;
    transition: background 0.2s;
    min-width: 120px;
}

input:focus,
textarea:focus,
select:focus {
    outline: 1px solid #555;
}

/* Buttons */
button {
    background: #222;
    color: #fff;
    border: 1px solid #333;
    padding: 0.6rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: monospace;
    transition: background 0.2s;
    min-width: 120px;
}

button:hover {
    background: #333;
    border-color: #555;
}

/* Conversation Box */
#conversation-box {
    width: 100%;
    max-width: 800px;
    height: 300px;
    overflow-y: auto;
    background-color: #000;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #333;
    color: #ccc;
    font-size: 0.9rem;
    font-family: monospace;
    white-space: pre-wrap;
}

/* Error Pages */
h1.error {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

button.error {
    background: #222;
    color: #fff;
    border: 1px solid #333;
}

/* Textarea */
textarea {
    resize: vertical;
    min-height: 100px;
    background-color: #000;
    border: 1px solid #333;
}

/* Checkboxes and Radios */
input[type="checkbox"],
input[type="radio"] {
    margin-right: 0.5rem;
}

/* Labels */
label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #aaa;
    width: 100%;
    text-align: left;
}

/* Loading Spinner */
#loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #aaa;
}

.spinner {
    margin: 1rem auto;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #333;
    border-top-color: #aaa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Image Frame */
.image-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #111;
    border: 1px solid #333;
    padding: 1rem;
    margin: 1.5rem 0;
    width: 100%;
    max-width: 600px;
}

/* Model Select */
#model-select {
    padding: 0.6rem;
    border: 1px solid #333;
    background: #000;
    color: #ccc;
    font-size: 0.9rem;
    width: 100%;
    max-width: 280px;
    margin: 1rem 0;
    font-family: monospace;
}

/* Log Container */
#log-container {
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid #333;
    padding: 1rem;
    margin: 1rem;
    background: #000;
    color: #aaa;
    font-family: monospace;
    font-size: 0.85rem;
}

.log-entry {
    margin-bottom: 0.5rem;
    padding: 0.8rem;
    background: #111;
    border: 1px solid #222;
}

/* Tables */
table {
    width: 91%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #000;
    border: 1px solid #333;
}

thead {
    background: #111;
    border-bottom: 1px solid #333;
}

thead th {
    padding: 0.6rem;
    color: #fff;
    font-weight: normal;
    border: 1px solid #333;
    text-align: left;
}

tbody td {
    padding: 0.6rem;
    color: #aaa;
    border: 1px solid #333;
    text-align: left;
}

/* Video Container */
.video-container {
    background-color: #111;
    border: 1px solid #333;
    padding: 1rem;
    margin: 1.5rem 0;
    max-width: 100%;
    width: 90%;
}

.video-container video {
    width: 90%;
    height: auto;
    border: 1px solid #333;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 60px;
    right: 10px;
    z-index: 1000;
    max-width: 400px;
    width: 90%;
}

.flash-message {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border: 1px solid #333;
    background: #111;
    color: #aaa;
    font-size: 0.9rem;
    position: relative;
}

/* Form Classes */
.form-class {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 400px;
}

/* Buttons */
.btn-discord {
    background: #222;
    color: #fff;
    padding: 0.6rem;
    border: 1px solid #333;
    display: inline-block;
    margin: 1rem 0;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: monospace;
}

/* Dividers */
hr {
    border: 0;
    border-top: 1px solid #333;
    margin: 1.5rem 0;
}

.divider {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    align-self: stretch;
}

.divider::before,
.divider::after {
    flex: 1;
    content: '';
    height: 1px;
    background-color: #333;
    margin: 0 8px;
}

/* Google Sign-In */
.gsi-material-button {
    background-color: #111;
    border: 1px solid #333;
    color: #ccc;
    font-family: monospace;
    padding: 0.6rem;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0.8rem;
    }
    
    h1 {
        font-size: 1.2rem;
    }
    
    #conversation-box,
    #log-container {
        height: 250px;
    }
    
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    thead {
        display: none;
    }
    
    tr {
        margin-bottom: 1rem;
        border: 1px solid #333;
    }
    
    td {
        padding-left: 40%;
        position: relative;
    }
    
    td::before {
        content: attr(data-label);
        left: 0.8rem;
        top: 0.8rem;
        color: #fff;
        position: absolute;
    }
}

.login-container {
    background: #111;
    border: 1px solid #333;
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    padding: 1rem;
}

h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.form-class {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 0.75rem;
}

label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    color: #aaa;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #333;
    background-color: #000;
    color: #ccc;
    font-size: 0.9rem;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #ccc;
    outline: 1px solid #ccc;
}

.remember-container {
    display: flex;
    align-items: center;
    margin: 0.25rem 0;
}

.remember-container label {
    margin: 0 0 0 8px;
    font-weight: normal;
    cursor: pointer;
    color: #aaa;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    padding: 0.6rem;
    background: #222;
    color: #ccc;
    border: 1px solid #333;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 0.25rem;
}

.btn-primary:hover {
    background: #000;
    border-color: #ccc;
}

.divider {
    font-size: 0.8rem;
    color: #aaa;
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.divider::after,
.divider::before {
    flex: 1;
    content: '';
    height: 1px;
    background-color: #333;
    margin: 0 4px;
}

.google-btn-container {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.6rem;
    background: #000;
    border: 1px solid #333;
    font-size: 0.9rem;
    font-weight: normal;
    color: #aaa;
    cursor: pointer;
}

.google-btn:hover {
    background-color: #111;
    border-color: #ccc;
}

.google-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.6rem;
    background: #222;
    border: 1px solid #333;
    font-size: 0.9rem;
    font-weight: normal;
    color: #aaa;
    cursor: pointer;
    text-decoration: none;
}

.discord-btn:hover {
    background: #000;
    border-color: #ccc;
}

.discord-icon {
    font-size: 16px;
    margin-right: 8px;
}

.register-link {
    text-align: left;
    margin-top: 1rem;
    color: #aaa;
}

.register-link a {
    color: #ccc;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Add to t-style.css */
.user-display {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: #111;
    color: #ccc;
    border: 1px solid #333;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-display .username {
    color: #fff;
}

.user-display .logout-link {
    color: #aaa;
    text-decoration: none;
}

.user-display .logout-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ── GLOBAL SCROLLBAR ───────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ── SIDEBAR ────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 220px;
  height: 100%;
  background: #000;
  border-left: 1px solid #333;
  padding: 1rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.2s ease;
  z-index: 1000;
  font-family: monospace;
}

/* open */
.sidebar.expanded {
  transform: translateX(0);
}

/* toggle button: small rectangle */
.sidebar-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  background: #111;
  color: #ccc;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 1001;
  border-radius: 0.25rem;
  padding: 0;   /* remove extra padding */
  max-width: 30px;
  box-sizing: border-box;
  min-width: 30px;
}

/* list styling inside sidebar */
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar li {
  margin: 0.3rem 0;
}

/* links */
.sidebar a {
  display: block;
  padding: 0.4rem;
  color: #ccc;
  text-decoration: none;
}
.sidebar a.active,
.sidebar a:hover {
  background: #111;
  border-left: 2px solid #555;
  padding-left: 0.2rem;
}

/* section headers */
.sidebar .nav-section {
  font-size: 0.75rem;
  color: #777;
  text-transform: uppercase;
  margin: 0.6rem 0 0.2rem;
  letter-spacing: 0.08em;
}