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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1b1f24;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.beta-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: #5a2c2c;
    border-radius: 999px;
    font-size: 0.35em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

input[type="text"], input[type="password"], textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: translateY(-2px);
}

.pool-form button, .bet-form button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

.share-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.url-box {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.url-box input {
    flex: 1;
    font-family: monospace;
    font-size: 14px;
}

.url-box button {
    width: auto;
    padding: 8px 16px;
}

.bet-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #e1e5e9;
}

.bet-card.highlight {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.bet-card strong {
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.bet-card p {
    color: #555;
    margin-bottom: 8px;
    line-height: 1.4;
}

.bet-card small {
    color: #888;
    font-size: 12px;
}

.your-bet, .all-bets {
    margin: 30px 0;
}

.note {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

.back-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    margin-top: 20px;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.admin-list {
    margin: 20px 0;
}

.admin-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid #e1e5e9;
}

.admin-row-title a {
    color: #333;
    font-weight: 700;
    text-decoration: none;
}

.admin-row-title span {
    color: #333;
    font-weight: 700;
}

.admin-row-title a:hover {
    text-decoration: underline;
}

.admin-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    margin-left: 10px;
    background: #eef3f7;
    border-radius: 999px;
    font-size: 13px;
    color: #1d4ed8;
    text-decoration: none;
    border: 1px solid #d7e2ec;
}

.admin-pill:hover {
    background: #d7e2ec;
}

.admin-row-meta {
    color: #666;
    font-size: 13px;
    margin-top: 6px;
}

.admin-row-desc {
    color: #555;
    margin-top: 10px;
    line-height: 1.4;
}

.admin-row-actions button {
    padding: 10px 14px;
    font-size: 14px;
}

button.danger {
    background: linear-gradient(135deg, #d64545 0%, #8b1f1f 100%);
}

button.secondary {
    background: #eef3f7;
    color: #1b1f24;
    border: 1px solid #d7e2ec;
}

button.secondary:hover {
    transform: translateY(-2px);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-toggle {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-toggle-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 700;
    color: #1b1f24;
    background: #eef3f7;
    border: 1px solid #d7e2ec;
}

.admin-toggle-link:hover {
    transform: translateY(-1px);
}

.admin-toggle-link.active {
    color: white;
    border-color: transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.admin-header-actions form {
    margin: 0;
}

.admin-header h1 {
    text-align: left;
    margin-bottom: 0;
}

.admin-search {
    margin: 16px 0 20px 0;
}

.admin-search-form {
    margin: 0;
}

.admin-search-form input[type="text"] {
    width: 100%;
}

.admin-search-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.admin-search-actions-left,
.admin-search-actions-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-delete-all-form {
    margin: 0;
}

.admin-clear-search {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.admin-clear-search:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin: 0 0 16px 0;
    font-weight: 600;
}

.alert-error {
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #dcfce7;
    color: #14532d;
    border: 1px solid #bbf7d0;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    text-align: right;
    margin-top: 10px;
}

.small-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.small-link:hover {
    text-decoration: underline;
}
