* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Host Grotesk', sans-serif;
    background: #000000;
    min-height: 100vh;
    padding: 10px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #0a0a0a;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
}

header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

h1 {
    color: #fff;
    font-size: 1.5em;
    margin-bottom: 5px;
}

.subtitle {
    color: #888;
    font-size: 0.85em;
}

.controls {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    justify-content: center;
}

.btn {
    padding: 6px 12px;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 0.75em;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-family: 'Host Grotesk', sans-serif;
}

.btn-primary {
    background: #1a1a1a;
    color: #0af;
    border-color: #0af;
}

.btn-primary:hover {
    background: #0af;
    color: #000;
}

.btn-danger {
    background: #1a1a1a;
    color: #f44;
    border-color: #f44;
}

.btn-danger:hover {
    background: #f44;
    color: #000;
}

.btn-secondary {
    background: #1a1a1a;
    color: #888;
    border-color: #444;
}

.btn-secondary:hover {
    background: #444;
    color: #fff;
}

.btn-success {
    background: #1a1a1a;
    color: #0f0;
    border-color: #0f0;
    padding: 4px 8px;
    font-size: 0.7em;
}

.btn-success:hover {
    background: #0f0;
    color: #000;
}

.btn-warning {
    background: #1a1a1a;
    color: #fa0;
    border-color: #fa0;
    padding: 4px 8px;
    font-size: 0.7em;
}

.btn-warning:hover {
    background: #fa0;
    color: #000;
}

.legend {
    background: #111;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #222;
}

.legend-item {
    margin: 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 0.75em;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.7em;
    min-width: 35px;
    text-align: center;
}

.badge.ftw {
    background: #f44;
    color: #000;
}

.badge.pmc {
    background: #fa0;
    color: #000;
}

.members-section, .history-section {
    margin-top: 20px;
}

h2 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    background: #0a0a0a;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #222;
}

.members-table thead {
    background: #1a1a1a;
}

.members-table th {
    padding: 8px;
    text-align: left;
    color: #888;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #333;
}

.members-table td {
    padding: 8px;
    color: #aaa;
    border-top: 1px solid #222;
    font-size: 0.95em;
    vertical-align: top;
}

.members-table td:nth-child(2),
.members-table td:nth-child(3) {
    text-align: center;
    width: 80px;
}

.members-table tbody tr {
    transition: background 0.2s;
}

.members-table tbody tr:hover {
    background: #151515;
}

.members-table tbody tr.out {
    background: #1a0a0a;
    opacity: 0.7;
}

.members-table tbody tr.out:hover {
    background: #200a0a;
}

.member-name {
    font-weight: 600;
    font-size: 1.05em;
    margin-bottom: 4px;
    /* Color is set dynamically based on strike count */
}

.member-status {
    background: #f44;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.6em;
    display: inline-block;
    margin-bottom: 4px;
}

.strike-dots {
    display: inline-flex;
    gap: 4px;
    vertical-align: middle;
}

.strike-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #333;
    background: #0a0a0a;
    transition: all 0.2s;
}

.strike-dot.active.ftw {
    background: #f44;
    border-color: #f44;
}

.strike-dot.active.pmc {
    background: #fa0;
    border-color: #fa0;
}

.member-actions {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.member-actions .btn {
    padding: 4px 8px;
    font-size: 0.65em;
}

.history-log {
    background: #111;
    border-radius: 4px;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #222;
}

.history-log::-webkit-scrollbar {
    width: 8px;
}

.history-log::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.history-log::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.history-log::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.history-item {
    padding: 8px;
    background: #0a0a0a;
    border-left: 2px solid #0af;
    margin-bottom: 6px;
    border-radius: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7em;
}

.history-item.ftw-strike {
    border-left-color: #f44;
}

.history-item.pmc-strike {
    border-left-color: #fa0;
}

.history-item.removed {
    border-left-color: #0f0;
}

.history-text {
    flex: 1;
    color: #aaa;
}

.history-time {
    color: #666;
    font-size: 0.9em;
}

.empty-state {
    text-align: center;
    padding: 20px;
    color: #444;
    font-size: 0.75em;
}

.history-controls {
    margin-bottom: 10px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #0a0a0a;
    margin: 15% auto;
    padding: 20px;
    border-radius: 4px;
    width: 90%;
    max-width: 350px;
    position: relative;
    border: 1px solid #333;
}

.modal-content h2 {
    color: #fff;
    font-size: 1.1em;
}

.close {
    color: #666;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: #fff;
}

#memberNameInput {
    width: 100%;
    padding: 8px;
    margin: 15px 0;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 0.85em;
    background: #111;
    color: #fff;
    font-family: 'Host Grotesk', sans-serif;
}

#memberNameInput:focus {
    outline: none;
    border-color: #0af;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.2em;
    }

    .subtitle {
        font-size: 0.7em;
    }

    .members-table {
        font-size: 0.85em;
    }

    .members-table th,
    .members-table td {
        padding: 6px;
    }

    .member-actions .btn {
        padding: 3px 6px;
        font-size: 0.6em;
    }

    .strike-dot {
        width: 14px;
        height: 14px;
    }
}
