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

body {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f1f3f6;
    color: #212121;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header Styles */
header {
    background: #ffffff;
    color: #212121;
    padding: 14px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
    color: #2874f0;
}

.logo-text h1 {
    font-size: 1.5em;
    font-weight: 700;
    color: #212121;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.5px;
}

.ai-badge {
    background: linear-gradient(135deg, #2874f0 0%, #1c5bbf 100%);
    color: white;
    font-size: 0.5em;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 0.7em;
    color: #878787;
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

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

.header-icon {
    font-size: 32px;
    color: #878787;
    cursor: pointer;
    transition: color 0.2s;
}

.header-icon:hover {
    color: #2874f0;
}

/* Search Section */
.search-section {
    background: white;
    padding: 20px 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    max-width: 900px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: #878787;
    font-size: 22px;
    pointer-events: none;
}

.search-bar input {
    flex: 1;
    padding: 13px 20px 13px 50px;
    border: 1px solid #c2c2c2;
    border-radius: 2px;
    font-size: 0.95em;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: #2874f0;
    box-shadow: 0 0 0 2px rgba(40,116,240,0.1);
}

.search-bar input::placeholder {
    color: #878787;
}

.search-bar button {
    padding: 13px 28px;
    background: #2874f0;
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-bar button .material-icons {
    font-size: 20px;
}

.search-bar button:hover {
    background: #1c5bbf;
    box-shadow: 0 2px 8px rgba(40,116,240,0.3);
}

.category-filter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-icon {
    color: #878787;
    font-size: 20px;
}

.category-filter label {
    font-size: 0.9em;
    color: #878787;
    font-weight: 600;
}

.category-filter select {
    padding: 9px 16px;
    border: 1px solid #c2c2c2;
    border-radius: 2px;
    font-size: 0.9em;
    font-family: 'Inter', sans-serif;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.category-filter select:focus {
    outline: none;
    border-color: #2874f0;
    box-shadow: 0 0 0 2px rgba(40,116,240,0.1);
}

.btn-clear-filters {
    padding: 8px;
    background: #f5f5f5;
    border: 1px solid #c2c2c2;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-clear-filters .material-icons {
    font-size: 18px;
    color: #878787;
}

.btn-clear-filters:hover {
    background: #e0e0e0;
    border-color: #999;
}

.btn-clear-filters:hover .material-icons {
    color: #f44336;
}

/* Status Bar */
.status-bar {
    background: white;
    color: #212121;
    padding: 12px 24px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.status-left, .status-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-icon {
    font-size: 18px;
    color: #388e3c;
}

#statusText {
    color: #388e3c;
    font-weight: 600;
}

.status-right {
    color: #878787;
}

.status-right .material-icons {
    font-size: 18px;
}

#lastUpdate {
    font-weight: 500;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
    padding: 0 24px;
}

.products-section, .analysis-section {
    background: white;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.section-icon {
    font-size: 24px;
    color: #2874f0;
}

.section-header h2 {
    color: #212121;
    font-size: 1.2em;
    font-weight: 700;
    margin: 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.3px;
}

#productsList {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

#productsList::-webkit-scrollbar {
    width: 6px;
}

#productsList::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#productsList::-webkit-scrollbar-thumb {
    background: #c2c2c2;
    border-radius: 3px;
}

#productsList::-webkit-scrollbar-thumb:hover {
    background: #878787;
}

.product-card {
    position: relative;
    background: white;
    border: 1px solid #f0f0f0;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.product-card.selected {
    border-color: #2874f0;
    box-shadow: 0 0 0 2px rgba(40,116,240,0.15);
    background: #f7f9fc;
}

.product-card.active-analysis {
    border-color: #ff9f00;
    box-shadow: 0 0 0 2px rgba(255,159,0,0.15);
    background: #fffbf5;
}

.product-selection {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.selection-checkbox {
    display: none;
}

.selection-label {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    color: #2874f0;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(40, 116, 240, 0.2);
    backdrop-filter: blur(4px);
}

.selection-label:hover {
    background: rgba(40, 116, 240, 0.1);
    border-color: #2874f0;
}

.selection-label .material-icons {
    font-size: 16px;
}

.product-card.selected .selection-label {
    background: #2874f0;
    color: white;
    border-color: #2874f0;
}

.product-card.selected .selection-label:hover {
    background: #1c5bbf;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 12px;
    background: #fafafa;
    padding: 8px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
    gap: 12px;
}

.product-name {
    font-weight: 500;
    font-size: 0.95em;
    color: #212121;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    background: #388e3c;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
}

.product-rating .material-icons {
    font-size: 14px;
}

.product-category {
    color: #878787;
    font-size: 0.75em;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.product-specs {
    color: #878787;
    font-size: 0.85em;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-prices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.price-tag {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 12px;
    background: #fafafa;
    border-radius: 3px;
}

.price-tag strong {
    color: #878787;
    font-size: 0.8em;
    font-weight: 500;
    min-width: 70px;
}

.price-amount {
    font-size: 1.4em;
    font-weight: 600;
    color: #212121;
}

.price-original {
    font-size: 0.9em;
    color: #878787;
    text-decoration: line-through;
}

.price-discount {
    font-size: 0.85em;
    color: #388e3c;
    font-weight: 500;
}

.product-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.product-actions button {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-actions button .material-icons {
    font-size: 18px;
}

.btn-research {
    background: #ff9f00;
    color: white;
}

.btn-research:hover {
    background: #e68a00;
    box-shadow: 0 2px 8px rgba(255,159,0,0.3);
}

.btn-track {
    background: white;
    color: #2874f0;
    border: 1px solid #2874f0;
}

.btn-track:hover {
    background: #f7f9fc;
}

#analysisResult {
    min-height: 300px;
}

.analysis-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #878787;
}

.placeholder-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.analysis-placeholder h3 {
    color: #212121;
    font-size: 1.3em;
    margin-bottom: 12px;
    font-weight: 600;
}

.analysis-placeholder p {
    font-size: 0.95em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.placeholder-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.feature-item {
    background: #fafafa;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #424242;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.feature-item .material-icons {
    font-size: 20px;
    color: #2874f0;
}

.analysis-loading {
    text-align: center;
    padding: 80px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #2874f0;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

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

.analysis-loading p {
    color: #212121;
    font-weight: 500;
    margin-bottom: 8px;
}

.analysis-loading small {
    color: #878787;
    font-size: 0.85em;
}

.analysis-error {
    text-align: center;
    padding: 60px 20px;
}

.error-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.analysis-error h3 {
    color: #f44336;
    margin-bottom: 12px;
}

.analysis-error p {
    color: #878787;
    margin-bottom: 24px;
}

.btn-retry {
    padding: 12px 24px;
    background: #2874f0;
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.btn-retry .material-icons {
    font-size: 20px;
}

.btn-retry:hover {
    background: #1c5bbf;
}

.analysis-card {
    background: #fafafa;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    animation: slideIn 0.3s ease-out;
}

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

.analysis-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.analysis-product-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #212121;
    margin-bottom: 4px;
}

.analysis-subtitle {
    font-size: 0.8em;
    color: #878787;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analysis-metrics {
    margin-bottom: 20px;
}

.analysis-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: white;
    border-radius: 3px;
    align-items: center;
}

.analysis-label {
    font-weight: 600;
    color: #878787;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-label .material-icons {
    font-size: 18px;
    color: #2874f0;
}

.analysis-value {
    color: #212121;
    font-weight: 600;
    font-size: 1em;
}

.decision-box {
    background: white;
    border: 2px solid #ff9f00;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.decision-box.buy-now {
    border-color: #388e3c;
    background: #f1f8f4;
}

.decision-box.wait {
    border-color: #ff9f00;
    background: #fff8e1;
}

.decision-box.consider {
    border-color: #f44336;
    background: #ffebee;
}

.decision-title {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 12px;
    color: #212121;
}

.decision-reason {
    color: #424242;
    line-height: 1.6;
    font-size: 0.95em;
}

.btn-view-report {
    width: 100%;
    padding: 14px 24px;
    background: #2874f0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    margin-top: 20px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-view-report .material-icons {
    font-size: 22px;
}

.btn-view-report:hover {
    background: #1c5bbf;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40,116,240,0.3);
}

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

.actions-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 0 24px;
}

.actions-bar button {
    padding: 12px 28px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.actions-bar button .material-icons {
    font-size: 20px;
}

#compareBtn {
    background: #2874f0;
    color: white;
}

#compareBtn:hover {
    background: #1c5bbf;
    box-shadow: 0 2px 8px rgba(40,116,240,0.3);
}

#compareBtn:disabled {
    background: #c2c2c2;
    cursor: not-allowed;
    box-shadow: none;
}

.actions-bar button:last-child {
    background: #ff9f00;
    color: white;
}

.actions-bar button:last-child:hover {
    background: #e68a00;
    box-shadow: 0 2px 8px rgba(255,159,0,0.3);
}

.report-section {
    background: white;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    margin: 0 24px 24px 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

.report-section.report-visible {
    opacity: 1;
    transform: translateY(0);
}

.report-section h2 {
    color: #212121;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

#reportContent {
    background: #fafafa;
    color: #212121;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.8;
    white-space: pre-wrap;
    border: 1px solid #f0f0f0;
}

.trend-up {
    color: #f44336;
    font-weight: 600;
}

.trend-down {
    color: #388e3c;
    font-weight: 600;
}

.trend-stable {
    color: #2874f0;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Header Mobile Styles */
    header {
        padding: 12px 16px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .header-left {
        flex: 1;
    }
    
    .logo {
        gap: 8px;
    }
    
    .logo-icon {
        font-size: 28px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .subtitle {
        font-size: 11px;
    }
    
    .header-right {
        flex-shrink: 0;
    }
    
    .header-icon {
        font-size: 28px;
    }
    
    /* Search Section Mobile */
    .search-section {
        padding: 12px 16px;
    }
    
    .search-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-bar input {
        width: 100%;
        padding: 10px 12px 10px 40px;
        font-size: 14px;
    }
    
    .search-icon {
        left: 12px;
        font-size: 20px;
    }
    
    .search-bar button {
        width: 100%;
        padding: 12px;
        font-size: 15px;
        justify-content: center;
    }
    
    /* Category Filter Mobile */
    .category-filter {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .category-filter label {
        width: 100%;
        font-size: 13px;
    }
    
    .btn-category-dropdown {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .btn-clear-filters {
        padding: 10px;
    }
    
    /* Status Bar Mobile */
    .status-bar {
        padding: 10px 16px;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .status-left, .status-right {
        font-size: 12px;
    }
    
    .status-icon {
        font-size: 16px;
    }
    
    /* Products Section Mobile */
    .products-section {
        padding: 12px 16px;
    }
    
    #productsList {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .product-card {
        padding: 12px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-specs {
        font-size: 12px;
    }
    
    /* Analysis Section Mobile */
    .analysis-section {
        padding: 12px 16px;
    }
    
    /* Actions Bar Mobile */
    .actions-bar {
        padding: 12px 16px;
        flex-direction: column;
        gap: 10px;
    }
    
    .actions-bar button {
        width: 100%;
        justify-content: center;
    }
    
    /* Category Modal Mobile */
    .category-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .category-modal-body {
        max-height: 60vh;
    }
    
    .category-modal-header {
        padding: 16px;
    }
    
    .category-modal-header h3 {
        font-size: 18px;
    }
    
    .category-modal-body {
        padding: 12px 16px;
    }
    
    .category-item {
        padding: 10px 0;
    }
    
    .category-item:hover {
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .category-modal-footer {
        padding: 12px 16px;
    }
    
    .btn-apply-categories {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile devices */
    .logo-text h1 {
        font-size: 16px;
    }
    
    .subtitle {
        display: none;
    }
    
    .ai-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .search-bar input {
        font-size: 13px;
    }
    
    .product-card {
        padding: 10px;
    }
    
    .section-header h2 {
        font-size: 16px;
    }
}


/* Category Modal Styles */
.btn-category-dropdown {
    background: white;
    border: 1px solid #d4d5d9;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    color: #212121;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    min-width: 180px;
    justify-content: space-between;
}

.btn-category-dropdown:hover {
    border-color: #2874f0;
    background: #f8f9fa;
}

.category-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.2s ease;
}

.category-modal-overlay.active {
    display: block;
}

.category-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    animation: slideUp 0.3s ease;
}

.category-modal.active {
    display: flex;
    flex-direction: column;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

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

.category-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #212121;
    margin: 0;
}

.btn-close-modal {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close-modal:hover {
    background: #e0e0e0;
}

.btn-close-modal .material-icons {
    font-size: 20px;
    color: #878787;
}

.category-modal-body {
    padding: 16px 24px;
    overflow-y: auto;
    max-height: 50vh;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
}

.category-item:hover {
    background: #f8f9fa;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}

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

.category-item-label {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.category-item-text {
    font-size: 15px;
    color: #212121;
    font-weight: 400;
}

.category-item-count {
    font-size: 13px;
    color: #878787;
    margin-left: 8px;
}

.category-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #d4d5d9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.category-item.selected .category-checkbox {
    background: #2874f0;
    border-color: #2874f0;
}

.category-checkbox .material-icons {
    font-size: 16px;
    color: white;
    display: none;
}

.category-item.selected .category-checkbox .material-icons {
    display: block;
}

.category-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
}

.btn-apply-categories {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-apply-categories:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

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

