/* Dual Database Attendee Search - Comprehensive Styling */

/* Color Palette */
:root {
    --primary-color: #0693e3;
    --primary-light: #d4c088;
    --background-light: #f9f9f9;
    --text-dark: #333;
    --border-color: #ddd;
}

/* Loading Spinner */
.gradient-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #036ca0 0%, #0693e3 50%, #5eb4f3 100%);
    position: relative;
    margin: 20px auto;
    animation: gradient-rotate 1s linear infinite;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.gradient-spinner::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    animation: inner-spin 1s linear infinite reverse;
}

@keyframes gradient-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes inner-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* Search Form Styling */
#dual-database-search-form {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 25px;
    background-color: var(--background-light);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#dual-database-search-form p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.5;
}

#dual-database-search-form .search-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

#dual-database-search-form .search-row > div {
    display: flex;
    align-items: center;
    flex: 1;
}

#dual-database-search-form label {
    margin-right: 10px;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
}

#dual-database-search-form input[type="text"] {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#dual-database-search-form input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(198, 178, 116, 0.2);
}

#dual-database-search-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

#dual-database-search-form button:hover {
    background-color: var(--primary-light);
}

/* Credential Filter Styling */
.credential-filters {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(6, 147, 227, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(6, 147, 227, 0.1);
}

.credential-filters p {
    margin-bottom: 10px !important;
    font-size: 15px;
    color: var(--text-dark);
}

.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    margin-right: 0 !important;
    white-space: normal;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Search Results Table */
.search-results-container {
    max-width: 100%;
    overflow-x: auto;
}

.credentials-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    font-size: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.credentials-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 16px;
    border-bottom: 1px solid var(--primary-color);
}

.credentials-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    white-space: nowrap;
}

.credentials-table tbody tr {
    background-color: white;
    transition: background-color 0.2s ease;
}

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

.credentials-table tbody tr:last-child td {
    border-bottom: none;
}

/* No Results Styling */
.no-results {
    padding: 20px;
    background-color: var(--background-light);
    border-radius: 8px;
    text-align: center;
    margin: 25px 0;
    color: #555;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Responsive Adjustments */
@media screen and (max-width: 600px) {
    #dual-database-search-form .search-row {
        flex-direction: column;
        gap: 10px;
    }
    
    #dual-database-search-form .search-row > div {
        width: 100%;
    }
    
    #dual-database-search-form input[type="text"],
    #dual-database-search-form button {
        width: 100%;
    }

    .loading-spinner,
    .material-spinner,
    .gradient-spinner {
        width: 40px;
        height: 40px;
    }

    .credentials-table {
        font-size: 14px;
    }

    .credentials-table th,
    .credentials-table td {
        padding: 10px;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .credential-filters {
        padding: 12px;
    }
}