/* Frontend Table Styles */
.domain-portfolio-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.domain-portfolio-header {
    margin-bottom: 24px;
}

.domain-portfolio-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.domain-portfolio-subtitle {
    color: #6b7280;
    margin: 0;
    font-size: 14px;
}

/* Filters Section */
.domain-filters {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.domain-filters h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

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

.filter-group label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.range-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.range-inputs input {
    flex: 1;
}

.range-separator {
    color: #6b7280;
    font-size: 12px;
}

.filter-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #3b82f6;
    color: #fff;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #6b7280;
    color: #fff;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Table Styles */
.domain-table-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.domain-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.domain-table thead {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.domain-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.domain-table td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.domain-table tbody tr:hover {
    background: #f9fafb;
}

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

/* Domain name styling */
.domain-name {
    font-weight: 600;
    color: #1f2937;
}

/* Type badges */
.domain-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.domain-type.com {
    background: #dbeafe;
    color: #1e40af;
}

.domain-type.net {
    background: #d1fae5;
    color: #065f46;
}

.domain-type.org {
    background: #fef3c7;
    color: #92400e;
}

/* Volume styling */
.domain-volume {
    font-weight: 600;
    color: #059669;
}

/* Authority bar */
.authority-container {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.authority-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.authority-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.authority-text {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    min-width: 20px;
}

/* Age styling */
.domain-age {
    font-size: 12px;
    color: #6b7280;
}

/* Description hover */
.description-hover {
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f3f4f6;
    font-size: 14px;
    transition: background 0.2s;
}

.description-hover:hover {
    background: #e5e7eb;
}

.description-empty {
    color: #9ca3af;
    font-size: 12px;
}

/* Additional column styling */
.domain-niche {
    font-size: 12px;
    color: #6b7280;
}

.country-tld {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}

.specific-country {
    font-size: 12px;
    color: #6b7280;
}

/* Affiliate dropdown */
.affiliate-dropdown {
    position: relative;
    display: inline-block;
}

.affiliate-trigger {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
}

.affiliate-trigger:hover {
    background: #2563eb;
}

.affiliate-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 8px;
    min-width: 120px;
    z-index: 1000;
    display: none;
}

.affiliate-dropdown.active .affiliate-content {
    display: block;
}

.affiliate-link {
    display: block;
    padding: 8px 12px;
    background: #059669;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s;
}

.affiliate-link:hover {
    background: #047857;
    color: #fff;
}

/* Pagination */
.domain-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.pagination-info {
    font-size: 14px;
    color: #6b7280;
}

.pagination-controls {
    display: flex;
    gap: 8px;
}

.pagination-controls button {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination-controls button:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-controls button.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* Loading state */
.domain-table-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* Empty state */
.domain-table-empty {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* Responsive design */
@media (max-width: 768px) {
    .domain-portfolio-wrapper {
        padding: 16px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        justify-content: stretch;
    }
    
    .filter-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .domain-table-container {
        overflow-x: auto;
    }
    
    .domain-table {
        min-width: 800px;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .domain-portfolio-title {
        font-size: 20px;
    }
    
    .range-inputs {
        flex-direction: column;
        gap: 4px;
    }
    
    .range-separator {
        display: none;
    }
}
