/* TravelTracks.org v2.0.251127 - Database Selector Styles */

/* MongoDB URL input */
#mongo-url {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Discovery status indicator */
.discovery-status {
    display: inline-block;
    margin-left: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.discovery-status.discovering {
    background-color: #e3f2fd;
    color: #1976d2;
}

.discovery-status.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.discovery-status.error {
    background-color: #ffebee;
    color: #c62828;
}

.discovery-status.warning {
    background-color: #fff3e0;
    color: #ef6c00;
}

/* Form text helper */
.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Database indicator in header */
.database-indicator {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    font-weight: bold;
    margin-right: 1rem;
    cursor: help;
    transition: background-color 0.2s;
}

.database-indicator:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Database selector dropdown in login form */
#database-selector {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

#database-selector:hover {
    border-color: #999;
}

#database-selector:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

#database-selector option {
    padding: 0.5rem;
}

/* Custom URL input group */
#custom-url-group {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

#custom-url-group label {
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 0.25rem;
}

#custom-url-group input {
    margin-top: 0.25rem;
}

/* Form control styling */
.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Database connection status colors */
.db-production {
    color: #28a745;
}

.db-legacy {
    color: #ffc107;
}

.db-test {
    color: #17a2b8;
}

.db-localhost {
    color: #6c757d;
}

.db-custom {
    color: #6f42c1;
}

/* Database list table */
.database-list {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.database-list h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #495057;
    font-size: 1rem;
}

.database-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-size: 0.875rem;
}

.database-table thead {
    background-color: #e9ecef;
}

.database-table th,
.database-table td {
    padding: 0.5rem;
    text-align: left;
    border: 1px solid #dee2e6;
}

.database-table th {
    font-weight: 600;
    color: #495057;
}

.database-table tbody tr:hover {
    background-color: #f8f9fa;
}

.help-text {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #6c757d;
}

