/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Ocean Blue Color Palette */
    --primary-blue: #0066cc;
    --deep-blue: #004499;
    --light-blue: #3399ff;
    --ocean-blue: #006bb3;
    --sky-blue: #66ccff;
    --navy-blue: #003366;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    --gradient-secondary: linear-gradient(135deg, #3399ff 0%, #0066cc 100%);
    --gradient-accent: linear-gradient(135deg, #66ccff 0%, #3399ff 100%);
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8fafc;
    --gray: #64748b;
    --dark-gray: #334155;
    --black: #0f172a;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 102, 204, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 102, 204, 0.1), 0 2px 4px -1px rgba(0, 102, 204, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 102, 204, 0.1), 0 4px 6px -2px rgba(0, 102, 204, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 102, 204, 0.1), 0 10px 10px -5px rgba(0, 102, 204, 0.04);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    color: var(--dark-gray);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
    background: rgba(0, 102, 204, 0.1);
}

/* Hero Section */
.hero {
    padding: 4rem 0 6rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--navy-blue);
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Search Container */
.search-container {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: var(--light-gray);
    border-radius: 12px;
    padding: 0.5rem;
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-input-group:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-icon {
    color: var(--gray);
    margin: 0 1rem;
    font-size: 1.2rem;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem 0;
    font-size: 1.1rem;
    color: var(--dark-gray);
    outline: none;
}

.search-input::placeholder {
    color: var(--gray);
}

.search-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.search-btn:active {
    transform: translateY(0);
}

/* Filters */
.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 102, 204, 0.1);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.filter-select,
.filter-input {
    padding: 0.75rem;
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 8px;
    background: var(--white);
    color: var(--dark-gray);
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Stats Section */
.stats-section {
    padding: 3rem 0;
    background: var(--white);
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(51, 153, 255, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Results Section */
.results-section {
    padding: 3rem 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: var(--white);
}

.action-btn.secondary {
    background: var(--light-gray);
    color: var(--gray);
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Loading Animation */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.loading-spinner {
    margin-bottom: 2rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 102, 204, 0.1);
    border-left: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    text-align: center;
}

.loading-message {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.loading-details {
    color: var(--gray);
    font-size: 0.9rem;
}

.loading-progress {
    margin-top: 1.5rem;
    width: 300px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 600;
}

/* Results Table */
.table-container {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    vertical-align: middle;
}

.results-table tr:hover {
    background: rgba(0, 102, 204, 0.02);
}

.domain-cell {
    font-weight: 600;
    color: var(--primary-blue);
    font-family: 'Monaco', 'Menlo', monospace;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-available {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
}

.status-expired {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
}

.status-premium {
    background: rgba(168, 85, 247, 0.1);
    color: #7c3aed;
}

.status-checking {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-registered {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.metrics-cell {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.metric-badge {
    padding: 0.2rem 0.5rem;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-blue);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.metric-badge.quality-score {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
}
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--gray);
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.btn-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn-success {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    background: var(--light-gray);
}

.modal-header h3 {
    color: var(--navy-blue);
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-blue);
}

.modal-body {
    padding: 2rem;
}

.modal-body textarea {
    width: 100%;
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.bulk-options {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark-gray);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-blue);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-blue);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-weight: bold;
    font-size: 12px;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 102, 204, 0.1);
    background: var(--light-gray);
    display: flex;
    justify-content: flex-end;
}

/* Domain Details Styles */
.domain-details {
    line-height: 1.6;
}

.domain-details h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-family: 'Monaco', 'Menlo', monospace;
}

.domain-details h4 {
    color: var(--navy-blue);
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.domain-details p {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.domain-details strong {
    color: var(--navy-blue);
    font-weight: 600;
}

.registrar-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.registrar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--light-gray);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
    transition: var(--transition);
}

.registrar-link:hover {
    background: rgba(0, 102, 204, 0.1);
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--white);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    border-left-color: #059669;
}

.toast.error {
    border-left-color: #dc2626;
}

.toast.warning {
    border-left-color: #d97706;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-container {
        padding: 1.5rem;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-actions {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .results-table {
        min-width: 800px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
}