body {
    background-color: #111;
    color: #eee;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background: url('dwlogo.png') center/contain no-repeat;
    height: 85px;
    margin-bottom: 20px;
}

main {
    padding: 20px;
    max-width: 600px;
    margin: auto;
}

.main-wide {
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
}

h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

p {
    font-size: 1rem;
    margin-bottom: 12px;
}

strong {
    color: #ffcc00;
}

.section {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.owner-name {
    font-size: 1.2rem;
    color: #ffcc00;
    font-weight: bold;
}

.roomie-name {
    font-size: 1.2rem;
    color: #ffcc00;
    font-weight: bold;
}

.pending-roomie-name {
    font-size: 1.2rem;
    color: #808080;
    font-weight: bold;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

input, button {
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
}

input {
    background-color: #222;
    color: #eee;
}

input::placeholder {
    color: #888;
}

button {
    background-color: #ffcc00;
    color: #111;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: #e6b800;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#inviteMessage {
    margin-top: 10px;
    text-align: center;
}

.error {
    color: #f55;
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 480px) {
    header {
        height: 80px;
    }

    h1 {
        font-size: 1.5rem;
    }

    main {
        padding: 15px;
    }

    input, button {
        font-size: 0.95rem;
        padding: 10px;
    }
}

.room-status {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.room-status-small {
    font-weight: bold;
    text-align: center;
    padding: 2px;
    border-radius: 5px;
    margin-top: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-complete {
    background-color: #1f5e2c;
    color: #7CFF9B;
    border: 2px solid #2ecc71;
}

.status-incomplete {
    background-color: #5e1f1f;
    color: #ff8a8a;
    border: 2px solid #e74c3c;
}

.status-unassigned {
    background-color: #C35500;
    color: #FC913F;
    border: 2px solid #FC913F;
}

.status-unknown {
    background-color: #D9BB2A;
    color: #FFE981;
    border: 2px solid #e74c3c;
}

.cancel-invite-btn {
    padding: 4px;
    border: none;
    border-radius: 3px;
    background-color: #e74c3c;
    color: #fff;
}

.cancel-invite-btn:hover {
    padding: 4px;
    border: none;
    border-radius: 3px;
    background-color: #c0392b;
}

.remove-btn {
    padding: 4px;
    border: none;
    border-radius: 3px;
    background-color: #e74c3c;
    color: #fff;
}

.remove-btn:hover {
    padding: 4px;
    border: none;
    border-radius: 3px;
    background-color: #c0392b;
}

.status {
    font-size: 0.8rem;
}

.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
}

footer {
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    color: #aaa;
    border-top: 1px solid #222;
    margin-top: 30px;
}

.smol {
    font-size: 0.7rem;
}

.smol-link {
    font-size: 0.7rem;
    color: #ffcc00;
    font-weight: bold;
}

.smol-link {
    font-size: 0.7rem;
    font-weight: bold;
}

#log-output {
  width: 100%;
  font-family: "Courier New", monospace;
  line-height: 1.2em;
  height: calc(60 * 1.2em);
  white-space: pre;   /* no wrapping */
  overflow: auto;
  box-sizing: border-box;
  resize: none;
  font-weight: bold;
}

.danger {
    color: #ff0000;
}

.display-flex {
    display: flex;
    flex-direction: column;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-box {
    width: 100%;
    max-width: 400px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.modal-buttons button {
    flex: 1;
}

details summary {
    cursor: pointer;
    font-weight: bold;
    color: #ffcc00;
    margin-bottom: 10px;
}

details summary::-webkit-details-marker {
    display: none; /* hides default arrow (optional) */
}

details pre {
    background: #111;
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
    margin-top: 10px;
}