/* Laminar menu styles shared by Scala.js and static pages */
.btlg-menu {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 1001;
    pointer-events: none;
}

.menu-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    pointer-events: auto;
}

.menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    color: #00ffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
}

.menu-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.menu-btn:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transform: scale(1.1);
}

.menu-btn.hide-btn {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    color: #00ffff;
}

.menu-btn.hide-btn:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.welcome-message {
    color: #00ffff;
    font-size: 12px;
    margin-left: auto;
    padding-left: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.menu-select {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    color: #00ffff;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
}

.menu-select:hover {
    background: rgba(0, 255, 255, 0.2);
}

.menu-select option {
    background: #001428;
    color: #00ffff;
}

/* Dialog styles */
.dialog-overlay {
    display: none;
}

.dialog-overlay.visible {
    display: block;
    pointer-events: auto;
}

.dialog-overlay .dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    pointer-events: auto;
}

.dialog-overlay .dialog-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
    pointer-events: auto;
}

.dialog-content {
    background: linear-gradient(135deg, #001428 0%, #000a14 100%);
    border: 2px solid #00ffff;
    border-radius: 1rem;
    padding: 2rem;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.dialog-content h2 {
    color: #00ffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: #80ffff;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 0.5rem;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.dialog-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #00ffff 0%, #00cccc 100%);
    color: #001428;
    font-weight: bold;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #00ffff;
    border: 1px solid #00ffff;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.1);
}

.btn-link {
    background: none;
    border: none;
    color: #80ffff;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.btn-danger {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: #fff;
}

.error-message {
    color: #ff6464;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.loading {
    color: #80ffff;
    text-align: center;
    padding: 1rem;
}

/* OAuth buttons */
.oauth-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.oauth-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
    border: none;
}

.oauth-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.steam-btn {
    background: #171a21;
    color: #fff;
    border: 1px solid #66c0f4;
}

.google-btn {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.dialog-footer {
    margin-top: 1rem;
    text-align: center;
}

/* Highscore table styles */
.highscore-dialog {
    min-width: 400px;
}

.highscore-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.highscore-table th,
.highscore-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.highscore-table th {
    color: #00ffff;
    font-weight: bold;
}

.highscore-table td {
    color: #b0e0e0;
}

.no-scores {
    text-align: center;
    color: #80ffff;
    padding: 2rem;
}

/* Subscription dialog styles */
.subscription-dialog {
    min-width: 350px;
}

.subscription-status {
    padding: 1rem;
    text-align: center;
    color: #b0e0e0;
}

.subscription-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Account page styles */
.account-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #001428 0%, #000a14 100%);
}

.account-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 100px 2rem 2rem 2rem;
}

.account-content h1 {
    color: #00ffff;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.account-info {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.info-row:last-of-type {
    border-bottom: none;
}

.info-row .label {
    color: #80ffff;
    font-size: 0.9rem;
}

.info-row .value {
    color: #e0ffff;
    font-family: 'Share Tech Mono', monospace;
}

.account-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.not-logged-in {
    text-align: center;
    color: #b0e0e0;
    padding: 3rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 1rem;
}

.not-logged-in p {
    margin-bottom: 1rem;
}

.settings-section {
    margin-top: 2rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
}

.settings-section h2 {
    color: #00ffff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.setting-row .setting-label {
    color: #80ffff;
    font-size: 0.9rem;
}

.setting-row select {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    color: #00ffff;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
}

.setting-row select:hover {
    background: rgba(0, 255, 255, 0.2);
}

.setting-row select option {
    background: #001428;
    color: #00ffff;
}
