/* Domain Checker - Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h1 {
    margin-bottom: 10px;
    color: #333;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
}

.hint {
    color: #999;
    font-size: 12px;
    margin-top: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd6;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Dashboard */
.dashboard {
    min-height: 100vh;
}

.header {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 24px;
    color: #333;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    color: #666;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    color: #666;
    margin-top: 5px;
}

.stat-available { border-left: 4px solid #28a745; }
.stat-expiring { border-left: 4px solid #ffc107; }
.stat-registered { border-left: 4px solid #6c757d; }
.stat-unknown { border-left: 4px solid #17a2b8; }

/* Tabs */
.tabs {
    display: flex;
    padding: 0 30px;
    background: white;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #333;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar select,
.toolbar input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* Table */
.table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.domain-table th,
.domain-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.domain-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

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

.domain-table input[type="checkbox"] {
    cursor: pointer;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-registered {
    background: #e2e3e5;
    color: #383d41;
}

.status-expiring {
    background: #fff3cd;
    color: #856404;
}

.status-expired {
    background: #f8d7da;
    color: #721c24;
}

.status-unknown {
    background: #d1ecf1;
    color: #0c5460;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

/* Import Section */
.import-section {
    max-width: 800px;
}

.import-section textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
}

.import-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.import-result {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

/* Providers Grid */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.provider-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.provider-card.enabled {
    border-left: 4px solid #28a745;
}

.provider-card.disabled {
    border-left: 4px solid #dc3545;
    opacity: 0.7;
}

.provider-card h3 {
    margin-bottom: 10px;
}

.provider-status {
    font-size: 14px;
    margin-bottom: 10px;
}

.provider-info {
    font-size: 13px;
    color: #666;
}

.provider-info p {
    margin: 5px 0;
}

.usage-stats {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.usage-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content h3 {
    margin: 25px 0 15px 0;
    color: #555;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.cron-code {
    display: block;
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    font-size: 12px;
    overflow-x: auto;
    word-break: break-all;
}

/* Progress Bar */
.progress-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s;
}

#progress-text {
    text-align: center;
    color: #666;
}

#progress-current {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Domain List (Available/Expiring tabs) */
.domain-list {
    display: grid;
    gap: 10px;
}

.domain-item {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.domain-item .domain-name {
    font-weight: 500;
    font-size: 16px;
}

.domain-item .domain-info {
    color: #666;
    font-size: 13px;
}

.domain-item .domain-actions {
    display: flex;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats-grid {
        padding: 15px;
    }
    
    .tabs {
        overflow-x: auto;
        padding: 0 15px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        white-space: nowrap;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-left,
    .toolbar-right {
        flex-direction: column;
    }
    
    .toolbar select,
    .toolbar input,
    .toolbar button {
        width: 100%;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .domain-table {
        min-width: 600px;
    }
}

/* Clickable Stat Cards */
.stat-card.clickable {
    cursor: pointer;
    user-select: none;
}

.stat-card.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.stat-card.clickable:active {
    transform: translateY(-2px);
}

/* Toolbar Rows */
.toolbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-row:not(:last-child) {
    margin-bottom: 10px;
}

.filter-label {
    font-weight: 500;
    color: #555;
    margin-right: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

/* Tags */
.tag-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: white;
    margin: 1px;
}

.tag-badge.large {
    padding: 5px 12px;
    font-size: 13px;
}

.tags-cell {
    max-width: 200px;
}

.no-tags {
    color: #999;
    font-style: italic;
}

/* Tags Management */
.tags-section {
    max-width: 900px;
}

.tag-create-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tag-create-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.tag-create-form input[type="color"] {
    width: 50px;
    height: 40px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.tags-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tag-item .tag-count {
    color: #666;
    font-size: 13px;
}

.tag-item .tag-actions {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

/* Bulk Tag Section */
.bulk-tag-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bulk-tag-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: monospace;
    font-size: 13px;
    margin: 10px 0;
}

.bulk-tag-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.bulk-tag-actions select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    min-width: 150px;
}

/* Expiring Section */
.expiring-section {
    max-width: 1000px;
}

.expiring-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.expiring-filters label {
    font-weight: 500;
    color: #555;
}

.expiring-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* Days Left Column */
.days-left {
    font-weight: bold;
}

.days-left.expired {
    color: #dc3545;
}

.days-left.critical {
    color: #dc3545;
}

.days-left.warning {
    color: #ffc107;
}

/* Import Options */
.import-options {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.import-options select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.import-success {
    color: #155724;
    background: #d4edda;
    padding: 15px;
    border-radius: 5px;
}

.import-error {
    color: #721c24;
    background: #f8d7da;
    padding: 15px;
    border-radius: 5px;
}

/* Table Footer */
.table-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 13px;
}

/* Action Buttons */
.btn-tiny {
    padding: 4px 8px;
    font-size: 11px;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* No Data */
.no-data {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

/* Additional Table Styles */
.domain-name {
    font-family: monospace;
    font-size: 13px;
}

.expiry-date {
    font-size: 13px;
    color: #666;
}

.last-checked {
    font-size: 12px;
    color: #999;
}

.actions {
    white-space: nowrap;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background: #333;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: #28a745;
}

.toast-error {
    background: #dc3545;
}

.toast-warning {
    background: #ffc107;
    color: #333;
}

.toast-info {
    background: #17a2b8;
}

/* Sortable Headers */
.sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.sortable:hover {
    background: #e9ecef;
}

.sortable.sort-asc::after {
    content: ' ▲';
    color: #667eea;
}

.sortable.sort-desc::after {
    content: ' ▼';
    color: #667eea;
}

/* Table Footer */
.table-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.table-footer-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Expiry Date Colors */
.expiry-expired {
    color: #dc3545 !important;
    font-weight: bold;
}

.expiry-critical {
    color: #dc3545 !important;
    font-weight: bold;
}

.expiry-warning {
    color: #ffc107 !important;
    font-weight: 500;
}

/* Clickable Status Badge */
.status-badge {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.status-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Clickable Tag Badge */
.tag-badge {
    cursor: pointer;
    transition: transform 0.2s;
}

.tag-badge:hover {
    transform: scale(1.1);
}

/* Progress Modal Improvements */
#progress-modal .modal-content {
    text-align: center;
}

#progress-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

#progress-current {
    font-size: 13px;
    color: #666;
}

/* Import Progress */
.import-progress {
    padding: 20px;
}

.import-progress .progress-bar {
    height: 25px;
    margin-bottom: 15px;
}

#import-progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* Delete Modal */
.modal-large {
    max-width: 600px;
}

.warning-text {
    color: #dc3545;
    font-weight: 500;
    margin-bottom: 20px;
}

.delete-stats {
    max-height: 400px;
    overflow-y: auto;
}

.delete-stats h4 {
    margin: 20px 0 10px 0;
    color: #555;
    font-size: 14px;
    text-transform: uppercase;
}

.delete-stats h4:first-child {
    margin-top: 0;
}

.delete-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.delete-option:hover {
    background: #fff0f0;
    border-color: #dc3545;
}

.delete-option-label {
    font-weight: 500;
}

.delete-option-count {
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
}

.delete-option:hover .delete-option-count {
    background: #dc3545;
    color: white;
}

/* Category Styles */
.stat-indexed { 
    border-left: 4px solid #f59e0b; 
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.stat-not-interesting { 
    border-left: 4px solid #9ca3af; 
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.btn-indexed {
    background: #f59e0b;
    color: white;
}

.btn-indexed:hover {
    background: #d97706;
}

.btn-not-interesting {
    background: #6b7280;
    color: white;
}

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

/* Categories Section */
.categories-section {
    max-width: 1200px;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.category-card.category-indexed {
    border-top: 4px solid #f59e0b;
}

.category-card.category-not-interesting {
    border-top: 4px solid #6b7280;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-header h3 {
    margin: 0;
    font-size: 18px;
}

.category-count {
    background: #e5e7eb;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.category-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.category-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.category-input {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.category-input h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #555;
}

.category-input textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: monospace;
    font-size: 13px;
    margin-bottom: 10px;
    resize: vertical;
}

/* Category Domain List */
.category-list {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.category-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.category-list-header span {
    font-weight: 500;
    color: #666;
}

.category-domain-list {
    max-height: 300px;
    overflow-y: auto;
}

.category-domain-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 5px;
}

.category-domain-item:hover {
    background: #e9ecef;
}

.category-domain-item .domain-name {
    flex: 1;
    font-family: monospace;
    font-size: 13px;
}

.category-domain-item .status-badge {
    padding: 2px 8px;
    font-size: 11px;
}

/* Background Jobs */
.job-progress {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.job-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.job-status.running {
    background: #dbeafe;
    color: #1e40af;
}

.job-status.paused {
    background: #fef3c7;
    color: #92400e;
}

.job-status.completed {
    background: #d1fae5;
    color: #065f46;
}

.job-details {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.job-stats {
    font-size: 13px;
    color: #666;
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.job-stats span {
    font-weight: 600;
    color: #333;
}

.job-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.active-jobs-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.active-jobs-section h3 {
    margin-bottom: 15px;
}

/* Notification Banner */
.notification-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.notification-icon {
    font-size: 24px;
    animation: pulse 2s infinite;
}

#notification-text {
    flex: 1;
    font-weight: 500;
}

/* Stat Badge (pulse indicator) */
.stat-card {
    position: relative;
}

.stat-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.stat-badge.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.stat-dropping {
    border-left: 4px solid #8b5cf6;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

/* Dropping Section */
.dropping-section {
    max-width: 100%;
}

.dropping-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.dropping-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropping-filters select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.dropping-count {
    background: #e5e7eb;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.dropping-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* New Available Alert */
.new-available-alert {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.new-available-alert.show {
    transform: translateY(0);
    opacity: 1;
}

.alert-icon {
    font-size: 24px;
}

#new-available-text {
    flex: 1;
    font-weight: 500;
}

/* Recheck Progress */
.recheck-progress {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

#recheck-progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* Checking animation */
.checking {
    background: #fef3c7 !important;
    animation: checkingPulse 1s infinite;
}

@keyframes checkingPulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.last-checked-ago {
    color: #666;
    font-size: 13px;
}

/* Active Jobs Panel - Top Banner Style */
.active-jobs-panel {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.jobs-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.jobs-panel-content {
    max-height: 250px;
    overflow-y: auto;
}

/* Jobs displayed in a horizontal scrollable row */
.jobs-panel-items {
    display: flex;
    gap: 10px;
    padding: 10px;
    overflow-x: auto;
}

.job-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    min-width: 280px;
    flex-shrink: 0;
}

.job-item.completed {
    opacity: 0.7;
}

.job-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 13px;
}

.job-item-status {
    font-size: 12px;
    padding: 2px 8px;
    background: #e5e7eb;
    border-radius: 10px;
}

.job-item-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar.small {
    height: 8px;
    flex: 1;
}

.job-item-text {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}

.job-item-last {
    font-size: 11px;
    color: #888;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-item-actions {
    margin-top: 8px;
    display: flex;
    gap: 5px;
}

/* Jobs panel actions */
.jobs-panel-actions {
    display: flex;
    gap: 5px;
    padding: 8px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

/* Category limit selector */
.category-limit {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    background: white;
}

.category-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

/* Pagination */
.pagination-container {
    margin: 15px 0;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pagination-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.pagination-select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    background: white;
}

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

/* Category pagination */
.category-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px;
    background: #f0f4f8;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Global Actions Bar */
.global-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 8px;
    margin-bottom: 15px;
}

.global-actions-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.global-info {
    font-size: 13px;
    color: #0369a1;
}

.global-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Quick Pagination */
.quick-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 10px;
    padding-right: 10px;
    border-right: 1px solid #bae6fd;
}

.page-selector {
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    cursor: pointer;
    min-width: 120px;
}

.page-selector:hover {
    border-color: #6366f1;
}

.quick-pagination .btn {
    padding: 5px 10px;
    min-width: auto;
}

/* Live Check Log Panel */
.live-check-panel {
    background: #1e293b;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.live-check-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #334155;
    color: white;
    font-weight: 600;
}

.live-check-stats {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.live-check-stats .stat-item {
    font-size: 13px;
    font-weight: 500;
}

.live-check-stats .stat-item.available { color: #4ade80; }
.live-check-stats .stat-item.registered { color: #60a5fa; }
.live-check-stats .stat-item.expiring { color: #fbbf24; }
.live-check-stats .stat-item.error { color: #f87171; }

.live-check-content {
    max-height: 200px;
    overflow-y: auto;
}

.live-log-entries {
    padding: 10px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
}

.log-entry {
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.log-entry .time {
    color: #64748b;
    font-size: 11px;
    min-width: 65px;
}

.log-entry .domain {
    color: #e2e8f0;
    flex: 1;
}

.log-entry .status {
    font-weight: 600;
    min-width: 100px;
    text-align: right;
}

.log-entry.available { background: rgba(74, 222, 128, 0.1); }
.log-entry.available .status { color: #4ade80; }

.log-entry.registered { background: rgba(96, 165, 250, 0.1); }
.log-entry.registered .status { color: #60a5fa; }

.log-entry.expiring { background: rgba(251, 191, 36, 0.1); }
.log-entry.expiring .status { color: #fbbf24; }

.log-entry.error { background: rgba(248, 113, 113, 0.1); }
.log-entry.error .status { color: #f87171; }

.log-entry .expiry {
    color: #94a3b8;
    font-size: 11px;
}

/* Debug Log Modal */
.modal-large {
    max-width: 900px;
    width: 90%;
}

.debug-log-actions {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.debug-log-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 11px;
    line-height: 1.5;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Export/Import Section */
.export-import-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.export-import-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.export-card, .import-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.export-card h3, .import-card h3 {
    margin: 0 0 10px 0;
    color: #334155;
}

.export-card p, .import-card p {
    margin: 0 0 15px 0;
    color: #64748b;
    font-size: 14px;
}

.export-options, .import-data-options {
    margin-bottom: 15px;
}

.export-actions, .import-data-actions {
    display: flex;
    gap: 10px;
}

.import-file-section {
    margin-bottom: 15px;
}

.import-file-section input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.import-file-section input[type="file"]:hover {
    border-color: #6366f1;
}

.import-data-preview {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.import-preview-info h4 {
    margin: 0 0 10px 0;
    color: #334155;
}

.import-preview-info p {
    margin: 5px 0;
    font-size: 13px;
}

@media (max-width: 768px) {
    .export-import-cards {
        grid-template-columns: 1fr;
    }
    
    .global-actions-bar {
        flex-direction: column;
        gap: 10px;
    }
}

/* Check Options Dropdown */
.check-options-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 100;
    width: 320px;
    overflow: hidden;
    margin-top: 5px;
}

.dropdown-header {
    padding: 12px 15px;
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #eee;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    width: 100%;
    text-align: left;
    border: none;
    background: white;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f0f9ff;
}

.dropdown-icon {
    font-size: 20px;
    line-height: 1;
}

.dropdown-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 3px;
}

.dropdown-desc {
    font-size: 12px;
    color: #666;
}

/* Toolbar positioning for dropdown */
.toolbar-right {
    position: relative;
}
