/**
 * Page Patterns CSS
 * Common page-specific patterns and components used across product pages.
 * Part of the ITCSS architecture (Layer 5: Page-specific patterns)
 */

/* ============================================
   FILE UPLOAD AREAS
   ============================================ */

.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    padding: 1.5rem;
    text-align: center;
    background-color: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #fdc300;
    background-color: #fffdf5;
}

.file-upload-area.dragover {
    border-color: #fdc300;
    background-color: #fffdf5;
}

/* ============================================
   COUNTRY MANAGEMENT
   ============================================ */

.country-management {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.country-tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    margin: 0.125rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.country-tag .remove-country {
    margin-left: 0.25rem;
    cursor: pointer;
    color: #dc3545;
}

.country-tag .remove-country:hover {
    color: #a71d2a;
}

/* ============================================
   ADD SECTIONS (Keywords, URLs, etc.)
   ============================================ */

.add-keyword-section,
.add-url-section {
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ============================================
   PROGRESS INDICATORS
   ============================================ */

.progress-section {
    margin-top: 1rem;
}

.progress-section .progress {
    height: 1.5rem;
}

.progress-section .progress-bar {
    transition: width 0.3s ease;
}

/* ============================================
   URL/DOMAIN SPECIFIC STYLES
   ============================================ */

.url-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-cell:hover {
    overflow: visible;
    white-space: normal;
    word-break: break-all;
}

/* ============================================
   STATUS BADGES
   ============================================ */

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.status-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-pending {
    background-color: #fff3cd;
    color: #664d03;
}

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

/* ============================================
   DOMAIN RATING DISPLAY
   ============================================ */

.domain-rating {
    font-weight: 600;
    color: #01b3b3;
}

/* ============================================
   TRAFFIC VALUES
   ============================================ */

.traffic-value {
    font-weight: 500;
}

/* ============================================
   LABEL BADGES
   ============================================ */

.label-badge {
    background-color: #e7f3ff;
    color: #0056b3;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    margin: 0.125rem;
    border-radius: 0.25rem;
    display: inline-block;
}

/* ============================================
   TABLE CONTAINERS
   ============================================ */

.table-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

/* ============================================
   URL/DOMAIN TABLE STYLES
   ============================================ */

.url-table {
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.url-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.url-table td {
    vertical-align: middle;
}