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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
    color: #2c3e50;
}

/* Base responsive container */
.container {
    max-width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "sidebar header"
        "sidebar main";
    transition: all 0.3s ease;
    --bs-gutter-x: 0rem !important;
}

/* Header styles */
.top-bar {
    grid-area: header;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-img {
    height: 40px;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    display: flex;
}

.search-bar input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-bar button {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.notifications {
    position: relative;
    margin-right: 20px;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Sidebar styles */
.sidebar {
    grid-area: sidebar;
    background: #2c3e50;
    color: #fff;
    padding: 1rem 0;
    height: 100vh;
    position: sticky;
    top: 0;
    transition: all 0.3s ease;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sidebar li:hover {
    background-color: #34495e;
}

.sidebar li.active {
    background-color: #3498db;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.sidebar i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Main content area */
.main-content {
    grid-area: main;
    padding: 2rem;
    background: #f8f9fa;
    min-height: calc(100vh - 60px);
}

h1 {
    margin-bottom: 20px;
    color: #2c3e50;
}

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

.card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h3 {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 10px;
}

.card .number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.card .trend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.trend.positive {
    color: #2ecc71;
}

.trend.negative {
    color: #e74c3c;
}

.trend.neutral {
    color: #9e9e9e;
}

.trend.positive i {
    color: #4CAF50;
}

.trend.negative i {
    color: #f44336;
}

/* Quick Action Buttons */
.quick-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.action-btn.primary {
    background-color: #3498db;
    color: white;
}

.action-btn.secondary {
    background-color: #2ecc71;
    color: white;
}

.action-btn.tertiary {
    background-color: #f1c40f;
    color: white;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Filters Panel */
.filters-panel {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

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

.filter-group label {
    font-weight: 500;
    color: #333;
}

.filter-group select,
.filter-group input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-range input {
    width: 100px;
}

.bulk-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Data Table */
.table-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

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

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

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

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

.confidence-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.confidence-badge.high {
    background: #d4edda;
    color: #155724;
}

.confidence-badge.medium {
    background: #fff3cd;
    color: #856404;
}

.confidence-badge.low {
    background: #f8d7da;
    color: #721c24;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn:hover {
    background: #0056b3;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Status Indicators */
.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

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

.status.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}

/* Small Action Buttons */
.action-btn.small {
    padding: 6px;
    font-size: 14px;
    margin: 0 2px;
}

/* Scrape Request Section */
.scrape-request-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.scrape-request-section h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.request-form {
    display: grid;
    gap: 20px;
    max-width: 600px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group input[type="url"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.file-upload {
    display: flex;
    gap: 10px;
    align-items: center;
}

.file-upload input[type="file"] {
    display: none;
}

/* Queue Section */
.queue-section h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Additional Status Styles */
.status.pending {
    background-color: #fff3cd;
    color: #856404;
}

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

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

/* Reports Overview */
.reports-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-container h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
}

.chart-container canvas {
    width: 100% !important;
    height: 300px !important;
}

/* Export Section */
.export-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.export-section h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.export-format h3,
.scheduled-reports h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
}

.format-buttons {
    display: flex;
    gap: 10px;
}

.schedule-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.email-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.email-option label {
    font-size: 14px;
    color: #2c3e50;
}

/* Competitor Tags */
.competitor-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.competitor-tag.amazon {
    background-color: #ff9900;
    color: white;
}

.competitor-tag.walmart {
    background-color: #007dc6;
    color: white;
}

.competitor-tag.lowes {
    background-color: #004990;
    color: white;
}

/* Attribute Tags */
.attribute-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: #e8f4f8;
    color: #2c3e50;
}

/* Product Match Styles */
.main-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.main-row:hover {
    background-color: #f5f6fa;
}

.main-row.expanded {
    background-color: #e8f4f8;
}

.match-details {
    display: none;
    background-color: #f8f9fa;
}

/* .match-details td {
    padding: 0 !important;
} */

.master_heading{
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.match-results {
    padding: 20px;
}

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

.match-header span {
    font-weight: 600;
    color: #2c3e50;
}

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

.match-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

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

.match-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.score-bar {
    width: 100%;
    height: 20px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.score {
    height: 100%;
    background-color: #2ecc71;
    color: white;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    transition: width 0.3s;
}

.product-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.text-danger {
    color: #e74c3c;
}

.text-success {
    color: #2ecc71;
}

/* Status Styles Update */
.status.failed {
    background-color: #f8d7da;
    color: #721c24;
}

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

/* Match Cards Styles */
.match-cards-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
}

.match-card {
    flex: 0 0 350px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.match-score {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 6px 5px;
}

.scroreBarWrapper{
    width: 100%;
    display: flex
}

.match-score .score-bar {
    flex: 1;
}

.rank {
    font-weight: bold;
    color: #000;
    font-size: 14px;
}

.match-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.match-field label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}

.match-field span {
    font-size: 14px;
    color: #2c3e50;
    word-break: break-word;
}

.match-actions-bottom {
    margin-top: auto;
    text-align: right;
}

/* Dashboard Section Styles */
.dashboard-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    padding: 20px;
}

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

.section-header h2 {
    font-size: 18px;
    color: #2c3e50;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.activity-item:hover {
    background-color: #f1f3f5;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background-color: #e3f2fd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-icon i {
    font-size: 18px;
    color: #2196F3;
}

.activity-details {
    flex: 1;
}

.activity-description {
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: #7f8c8d;
}

/* Dashboard Charts */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.dashboard-chart {
    padding: 20px;
    height: 300px;
}

.chart-wrapper {
    height: 300px;
    width: 100%;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .container {
        grid-template-columns: 200px 1fr;
    }

    .data-table th, .data-table td {
        padding: 0.75rem 0.5rem;
    }

    .card {
        padding: 1rem;
    }
}

@media screen and (max-width: 992px) {
    .container {
        grid-template-columns: 60px 1fr;
    }

    .sidebar {
        overflow: hidden;
    }

    .sidebar:hover {
        width: 250px;
        z-index: 1000;
    }

    .sidebar span {
        display: none;
    }

    .sidebar:hover span {
        display: inline;
    }

    .filters-panel {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .filter-group {
        flex: 1 1 calc(50% - 1rem);
        min-width: 200px;
    }
}

@media screen and (max-width: 768px) {
    .container {
        grid-template-areas:
            "header header"
            "main main";
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -250px;
        z-index: 1000;
        height: 100vh;
    }

    .sidebar.active {
        left: 0;
    }

    .top-bar {
        padding: 0.5rem;
    }

    .search-bar {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }

    .match-cards-container {
        grid-template-columns: 1fr;
    }

    .match-card {
        width: 100%;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .chart-wrapper {
        height: 250px;
    }

    .activity-item {
        padding: 0.75rem;
    }

    .activity-icon {
        width: 32px;
        height: 32px;
    }

    .activity-icon i {
        font-size: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .main-content {
        padding: 1rem;
    }

    .page-header {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        flex: 1 1 100%;
    }

    .actions-group {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .action-btn {
        width: 100%;
    }

    .notifications {
        display: none;
    }

    .user-profile span {
        display: none;
    }

    .match-item {
        width: 100%;
        margin-right: 0;
    }

    .chart-wrapper {
        height: 200px;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive Table Styles */
.responsive-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Responsive Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dce0e3;
    border-radius: 4px;
}

/* Responsive Modal Styles */
.modal {
    padding: 1rem;
}

/* Responsive Chart Containers */
.chart-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.chart-container {
    width: 100%;
    min-height: 300px;
}

/* Responsive Grid Layouts */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    width: 100%;
}

/* Responsive Image Styles */
.responsive-img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes for Responsive Design */
.hide-on-mobile {
    @media screen and (max-width: 768px) {
        display: none !important;
    }
}

.show-on-mobile {
    display: none;
    @media screen and (max-width: 768px) {
        display: block !important;
    }
}

/* Responsive Navigation Menu */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

/* Responsive Card Styles */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

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

/* Responsive Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    gap: 0.5rem;
}

/* Responsive Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive Search Bar */
.search-container {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid #dce0e3;
    border-radius: 4px;
    transition: border-color 0.3s;
}

/* Responsive Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Loading States */
.loading {
    position: relative;
    min-height: 200px;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

/* Responsive Tabs */
.tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 1rem;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab.active {
    border-bottom-color: #3498db;
    color: #3498db;
}

/* Responsive Accordion */
.accordion {
    border: 1px solid #dce0e3;
    border-radius: 4px;
    overflow: hidden;
}

.accordion-header {
    padding: 1rem;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.accordion-content.active {
    padding: 1rem;
    max-height: 500px;
}

/* Scraping Page Styles */
.scraping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-range input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Status Badge Colors */
.status-badge.completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.in-progress {
    background: #cce5ff;
    color: #004085;
}

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

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

/* Scraping Page Styles */
.jobs-section {
    margin-bottom: 2rem;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.job-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

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

.job-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.job-body {
    margin-bottom: 1rem;
}

.job-url {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    word-break: break-all;
}

.job-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .label {
    font-size: 0.8rem;
    color: #666;
}

.stat .value {
    font-size: 1.1rem;
    font-weight: 500;
}

.progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress {
    height: 100%;
    background: #3498db;
    transition: width 0.3s ease;
}

.job-footer {
    display: flex;
    gap: 0.5rem;
}

/* Modal Styles */
.modal {

    width: 100%;
    height: 100%;

}

.modal-content {
    position: relative;
    background: white;
    margin: 10vh auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 1rem;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Table Styles */
.data-table {
    width: 100%;
    overflow-x: auto;
}

.data-table table {
    width: 100%;
    border-collapse: separate;
    font-size: 14px;
    border-spacing: 20px;
}

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

.data-table th {
    font-weight: 600;
    color: #666;
    background-color: #f8f9fa;
}

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

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

.icon-btn {
    padding: 0.25rem;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: none;
    border: 1px solid #ddd;
    color: #666;
    margin-right: 0.25rem;
}

.icon-btn:hover {
    background: #f8f9fa;
    color: #333;
}

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

.confidence-badge.high {
    background-color: #e8f5e9;
    color: #4caf50;
}

.confidence-badge.medium {
    background-color: #fff3e0;
    color: #ff9800;
}

.confidence-badge.low {
    background-color: #ffebee;
    color: #f44336;
}

.status-badge.active {
    background-color: #e3f2fd;
    color: #2196f3;
}

.status-badge.completed {
    background-color: #e8f5e9;
    color: #4caf50;
}

.status-badge.failed {
    background-color: #ffebee;
    color: #f44336;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar .progress {
    height: 100%;
    background-color: #2196f3;
    transition: width 0.3s ease;
}

/* Dashboard Section */
.dashboard-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

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

.section-header h2 {
    font-size: 18px;
    color: #2c3e50;
    margin: 0;
}

.section-header .btn {
    padding: 6px 12px;
    font-size: 14px;
    color: #2196f3;
    background: none;
    border: 1px solid #2196f3;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.section-header .btn:hover {
    background: #2196f3;
    color: white;
}

/* Chart Wrapper */
.chart-wrapper {
    height: 300px;
    width: 100%;
}
.exact-tag {
    width: 53px;
    float:right;
    text-align: center;
    border-radius: 25px;
    transform: rotate(0deg);
    background-color: #1414e8;
    color: white;
    position: absolute;
    font-size: 12px;
}
.similar-tag {
    width: 53px;
    float:right;
    text-align: center;
    border-radius: 25px;
    transform: rotate(0deg);
    background-color: #d5d553;
    color: white;
    position: absolute;
    font-size: 12px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .data-table {
        margin: 0 -20px;
        width: calc(100% + 40px);
    }

    .data-table table {
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }
}
