/* CRM Comparison Site Styles - Replicating CRMList.io */

/* Reset and base styles - bet365vpn inspired */
body {
    background: #f8fafc;
    margin: 0;
    padding: 0;
}

.crm-grid-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8fafc;
}

/* Hero Section - bet365vpn inspired */
.crm-hero-section {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.2);
}

.crm-hero-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.crm-hero-section h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0 0 20px 0;
    opacity: 0.9;
    color: #e0e7ff;
}

.crm-hero-section p {
    font-size: 1rem;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.85;
    line-height: 1.6;
    color: #e0e7ff;
}

/* Filter tabs - bet365vpn inspired */
.crm-filter-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 12px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}

.filter-tab {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.filter-tab:hover {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-tab.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

/* CRM Grid */
.crm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* CRM Card */
.crm-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.crm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

/* Card Header */
.crm-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.crm-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background: #f8f9fa;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.crm-title-section h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.crm-best-for {
    margin: 0;
    color: #007bff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Ratings */
.crm-ratings {
    margin-bottom: 20px;
}

.rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.rating-row:last-child {
    border-bottom: none;
}

.rating-row.overall-rating {
    border-top: 2px solid #e9ecef;
    padding-top: 15px;
    margin-top: 10px;
    font-weight: 600;
}

.rating-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star {
    font-size: 18px;
    line-height: 1;
}

.star.full {
    color: #ffc107;
}

.star.half {
    color: #ffc107;
    position: relative;
}

.star.half::after {
    content: '★';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.star.empty {
    color: #dee2e6;
}

.rating-number {
    font-weight: 700;
    color: #007bff;
    font-size: 1.1rem;
    margin-left: 8px;
}

/* Description */
.crm-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Action buttons */
.crm-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    flex: 1;
    border: 1px solid #2563eb;
    box-shadow: 0 1px 3px rgba(37,99,235,0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(37,99,235,0.3);
    color: white;
    text-decoration: none;
    border-color: #1e40af;
}

.btn-secondary {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    flex: 1;
}

.btn-secondary:hover {
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .crm-hero-section h1 {
        font-size: 2rem;
    }
    
    .crm-hero-section h2 {
        font-size: 1.2rem;
    }
    
    .crm-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .crm-card {
        padding: 20px;
    }
    
    .filter-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .crm-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Filter animations - works with both grid and list */
.crm-card.hidden,
.crm-list-item.hidden {
    display: none;
}

.crm-card.fade-in,
.crm-list-item.fade-in {
    animation: fadeInUp 0.4s ease;
}

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

/* Loading state */
.crm-grid.loading,
.enhanced-list.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Category badges */
.crm-category-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

/* Top CRM indicator */
.crm-card.top-crm::before {
    content: "Top Rated";
    position: absolute;
    top: -8px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Expand/Collapse functionality */
.crm-card.collapsed .crm-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.expand-btn {
    color: #007bff;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
    margin-top: 8px;
    display: block;
}

.expand-btn:hover {
    color: #0056b3;
}

/* Search functionality - bet365vpn inspired */
.crm-search-container {
    margin-bottom: 20px;
    text-align: center;
    background: white;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}

.crm-search-input {
    padding: 12px 18px;
    font-size: 0.95rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    outline: none;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.crm-search-input:focus {
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* Sort options - bet365vpn inspired */
.sort-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}

.sort-label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
}

.sort-select {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    background: #f8fafc;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sort-select:focus {
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.sort-select:hover {
    border-color: #cbd5e1;
    background: white;
}

/* Stats counter - bet365vpn inspired */
.crm-stats {
    text-align: center;
    margin-bottom: 25px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    display: inline-block;
}

.stats-number {
    font-weight: 700;
    color: #2563eb;
}

/* Enhanced List View Styles - bet365vpn inspired */
.enhanced-list-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
}

.enhanced-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.crm-list-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
}

.crm-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #2563eb;
}

.crm-list-item.expanded {
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: #2563eb;
}

/* Main Content Row - Simple Layout */
.crm-main-content {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    gap: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 100px;
}

.crm-main-content:hover {
    background: #f8fafc;
}

.crm-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.crm-list-item .crm-logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
    transition: all 0.2s ease;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.2);
}

.crm-list-item .crm-logo:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.crm-rating-badge {
    background: #10b981;
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 6px;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.2);
}

.crm-info-section {
    flex: 1;
    min-width: 0;
    padding: 4px 0;
}

.crm-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.crm-list-item .crm-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.crm-verified {
    background: #10b981;
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.crm-list-item .crm-best-for {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    opacity: 0.9;
    line-height: 1.3;
}

.crm-short-desc {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.crm-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 8px;
    gap: 14px;
    font-size: 0.8rem;
    color: #64748b;
    flex-wrap: nowrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    white-space: nowrap;
    padding: 4px 8px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.meta-item:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.meta-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.meta-item:first-child .meta-icon {
    background: #10b981;
}

.meta-item:nth-child(2) .meta-icon {
    background: #3b82f6;
}

.meta-item:last-child .meta-icon {
    background: #f59e0b;
}

/* Ratings Section - Fixed Overlap */
.crm-ratings-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 280px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

.rating-compact {
    text-align: center;
    padding: 4px 3px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.rating-compact:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.rating-compact .rating-label {
    font-size: 0.65rem;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}

.rating-compact .star-rating {
    display: flex;
    justify-content: center;
    gap: 1px;
    margin-top: 0;
}

.rating-compact .star {
    color: #f59e0b;
    font-size: 14px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
    line-height: 1;
}

.overall-score {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2563eb;
    min-width: 75px;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 8px;
    padding: 12px 8px;
    border: 1px solid #bfdbfe;
    box-shadow: 0 1px 3px rgba(37,99,235,0.1);
}

.overall-score::after {
    content: "/5";
    font-size: 0.7rem;
    color: #1e40af;
    font-weight: 600;
    display: block;
    margin-top: -2px;
}

/* Action Buttons - Properly Proportioned */
.crm-list-item .crm-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 130px;
    align-self: center;
    justify-content: center;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    letter-spacing: 0.25px;
    line-height: 1.2;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-expand {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 1px 3px rgba(16,185,129,0.2);
    border: 1px solid #10b981;
}

.btn-expand:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(16,185,129,0.3);
    border-color: #047857;
}

/* Expanded Content - bet365vpn inspired */
.crm-expanded-content {
    display: none;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 32px;
    animation: slideDown 0.3s ease;
}

.crm-expanded-content.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

.expanded-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.expanded-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.expanded-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.detailed-description {
    color: #374151;
    line-height: 1.6;
    font-size: 0.95rem;
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pros, .cons {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pros {
    border-left: 3px solid #10b981;
}

.cons {
    border-left: 3px solid #ef4444;
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.pros li, .cons li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
}

.pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1rem;
}

.cons li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
    font-size: 1rem;
}

/* Sidebar Elements - bet365vpn inspired */
.pricing-card, .features-card, .stats-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pricing-highlight {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    text-align: center;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.15);
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
}

.price-period {
    font-size: 0.9rem;
    opacity: 0.8;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li:last-child {
    border-bottom: none;
}

.feature-check {
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
    background: #f8fafc;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2563eb;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
}

/* Bottom Actions - Better Proportions */
.expanded-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-large {
    padding: 12px 24px;
    font-size: 0.9rem;
    min-width: 160px;
}


/* Testimonial - bet365vpn inspired */
.testimonial {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin-top: 20px;
    position: relative;
    box-shadow: 0 4px 12px rgba(99,102,241,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Mobile Responsive - Improved Proportions */
@media (max-width: 768px) {
    .crm-main-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        min-height: auto;
        gap: 16px;
    }

    .crm-header-row {
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .crm-list-item .crm-name {
        font-size: 1.4rem;
    }

    .crm-verified {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .crm-logo-section {
        min-width: auto;
        margin-bottom: 12px;
    }

    .crm-list-item .crm-logo {
        width: 56px;
        height: 56px;
        font-size: 1rem;
    }

    .crm-rating-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
        margin-top: 6px;
    }

    .crm-info-section {
        padding: 8px 0;
        align-items: center;
    }

    .crm-meta {
        justify-content: center;
        gap: 6px;
        margin-top: 12px;
        flex-wrap: wrap;
    }

    .meta-item {
        font-size: 0.75rem;
        padding: 3px 6px;
    }

    .crm-ratings-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        min-width: auto;
        margin-top: 16px;
        padding: 12px;
    }

    .rating-compact {
        padding: 8px 4px;
        min-height: 50px;
        gap: 6px;
    }

    .rating-compact .rating-label {
        font-size: 0.65rem;
    }

    .rating-compact .star {
        font-size: 14px;
    }

    .overall-score {
        font-size: 1.7rem;
        padding: 12px 8px;
        margin-top: 16px;
        min-width: 80px;
    }

    .overall-score::after {
        font-size: 0.75rem;
    }

    .crm-list-item .crm-actions {
        min-width: auto;
        margin-top: 16px;
        gap: 8px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

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

    .pros-cons {
        grid-template-columns: 1fr;
    }

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

    .expanded-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: auto;
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-radius: 50%;
    border-top: 2px solid #007bff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

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

/* Print styles */
@media print {
    .crm-filter-tabs,
    .crm-search-container,
    .sort-options {
        display: none;
    }
    
    .crm-card {
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .crm-list-item {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}
