/* Operating Sessions Signup Styles */

/* Message Styles */
.signup-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    z-index: 9999;
    max-width: 300px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.signup-message-success {
    background-color: #28a745;
}

.signup-message-error {
    background-color: #dc3545;
}

/* Session Signup Container */
.session-signup-container {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.signup-status {
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 10px;
}

/* Signup Button Styles */
.signup-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.signup-button:hover:not(:disabled) {
    background: #0056b3;
}

.signup-button.unsignup {
    background: #dc3545;
}

.signup-button.unsignup:hover:not(:disabled) {
    background: #c82333;
}

.signup-button.disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Login Required Message */
.signup-login-required {
    color: #6c757d;
    font-style: italic;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

/* Operator Markup Container */
.operator-markup-container {
    margin: 20px 0;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
}

.operator-markup-header h3 {
    margin: 0 0 5px 0;
    color: #856404;
}

.operator-markup-header .description {
    margin: 0 0 15px 0;
    color: #856404;
    font-size: 14px;
}

/* Operator Search Styles */
.operator-search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
}

.operator-search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.operator-search-results-list {
    padding: 10px;
}

.operator-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.operator-result-item:last-child {
    border-bottom: none;
}

.operator-info {
    flex: 1;
}

.operator-name {
    font-weight: bold;
    color: #333;
}

.operator-details {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* Markup Button Styles */
.markup-operator-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.markup-operator-btn:hover:not(:disabled) {
    background: #218838;
}

.markup-operator-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Unmarkup Button Styles */
.unmarkup-operator-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    margin-left: 10px;
}

.unmarkup-operator-btn:hover:not(:disabled) {
    background: #c82333;
}

.unmarkup-operator-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Exchange Modal Styles */
.operator-markup-container {
    margin: 0;
}

.operator-markup-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.operator-markup-header .description {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.operator-actions {
    display: flex;
    align-items: center;
}

.exchange-user-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.exchange-user-btn:hover:not(:disabled) {
    background: #005a87;
}

.exchange-user-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Exchange Modal Actions */
.exchange-modal-actions {
    margin-top: 15px;
    text-align: right;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

#exchange-modal-close {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#exchange-modal-close:hover {
    background: #5a6268;
}

/* Status Messages */
.no-operators, .search-error {
    padding: 15px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.search-error {
    color: #dc3545;
}

.no-spots-available {
    color: #856404;
    font-style: italic;
    margin: 15px 0;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
}

/* Already Signed Up Styles */
.already-signed-up-badge {
    color: #dc3545;
    font-size: 12px;
    font-weight: bold;
    background: #f8d7da;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
}

.already-signed-up-text {
    color: #6c757d;
    font-style: italic;
    font-size: 12px;
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* Session Full Note */
.session-full-note {
    color: #856404;
    font-style: italic;
    margin: 15px 0;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    font-size: 14px;
}

/* Exchange Spot Button */
.exchange-spot-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    margin-left: 10px;
}

.exchange-spot-btn:hover:not(:disabled) {
    background: #218838;
}

.exchange-spot-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* User Actions Container */
.user-actions {
    display: inline-block;
    margin-top: 5px;
}

.user-actions button {
    display: inline-block;
    vertical-align: top;
}

/* User Name Row with Inline Actions */
.user-name-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.user-name-row .user-name {
    flex: 1;
    margin: 0;
    text-align: left;
}

.user-actions-inline {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.user-actions-inline button {
    white-space: nowrap;
}

/* Exchange Modal Styles */
.exchange-user-results {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.exchange-user-result {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.exchange-user-result:hover {
    background-color: #f8f9fa;
}

.exchange-user-result:last-child {
    border-bottom: none;
}

.exchange-user-result .user-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.exchange-user-result .user-details {
    font-size: 12px;
    color: #666;
}

/* Session Notification Preferences */
.session-notification-preference {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.session-notification-preference h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.session-notification-preference .description {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.notification-toggle {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.notification-toggle:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-1px);
}

.notification-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.notification-toggle.enabled {
    background: #dc3232;
}

.notification-toggle.enabled:hover:not(:disabled) {
    background: #a00;
}

/* Login Form Container */
.signup-login-form-container {
    max-width: 400px;
    margin: 20px 0;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.signup-login-form-container h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.signup-login-form-container form {
    margin: 0;
}

.signup-login-form-container label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.signup-login-form-container input[type="text"],
.signup-login-form-container input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.signup-login-form-container input[type="text"]:focus,
.signup-login-form-container input[type="password"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.signup-login-form-container .login-remember {
    margin: 15px 0;
}

.signup-login-form-container .login-remember label {
    display: inline;
    font-weight: normal;
    margin-left: 5px;
}

.signup-login-form-container input[type="checkbox"] {
    margin: 0;
}

.signup-login-form-container input[type="submit"] {
    width: 100%;
    padding: 12px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.signup-login-form-container input[type="submit"]:hover {
    background: #005a87;
}

.signup-login-form-container input[type="submit"]:active {
    background: #004a70;
}

.signup-login-form-container p {
    margin: 0 0 15px 0;
}

.signup-login-form-container p:last-child {
    margin-bottom: 0;
}