/* Online Mode Styles */

/* Login Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content-online {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #444;
    width: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    color: #eee;
}

.modal-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #e5c07b;
}

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

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

.form-group-online input {
    width: 100%;
    padding: 0.5rem;
    background: #333;
    border: 1px solid #555;
    color: white;
    border-radius: 4px;
    box-sizing: border-box;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

/* Header Controls */
.online-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #495057;
    background: #f1f3f5;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #ced4da;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #666;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.status-dot.online {
    background-color: #4caf50;
    box-shadow: 0 0 5px #4caf50;
}

.status-dot.offline {
    background-color: #aaa;
    box-shadow: 0 0 5px #aaa;
}

/* Reusing existing button styles but defining specific overrides if needed */
.btn-online {
    font-size: 0.8rem !important; 
    padding: 4px 10px !important;
    height: auto !important;
    line-height: normal !important;
}

/* Helper to hide elements */
.hidden {
    display: none !important;
}
