/* Cookie Consent Manager - Frontend Styles */

/* ===== RESET & BASE ===== */
.ccm-banner,
.ccm-modal,
.ccm-banner *,
.ccm-modal * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== COOKIE BANNER ===== */
.ccm-banner {
    position: fixed;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

.ccm-banner-bottom {
    bottom: 0;
}

.ccm-banner-top {
    top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ccm-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ccm-banner-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: inherit;
}

.ccm-banner-message {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

.ccm-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* ===== BUTTONS ===== */
.ccm-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.ccm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.ccm-accept-btn {
    background: #27ae60;
    color: #ffffff;
}

.ccm-accept-btn:hover {
    background: #229954;
}

.ccm-reject-btn {
    background: #e74c3c;
    color: #ffffff;
}

.ccm-reject-btn:hover {
    background: #c0392b;
}

.ccm-settings-btn {
    background: #3498db;
    color: #ffffff;
}

.ccm-settings-btn:hover {
    background: #2980b9;
}

/* ===== MODAL ===== */
.ccm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.ccm-modal-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    animation: ccmModalFadeIn 0.3s ease-out;
}

@keyframes ccmModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.ccm-modal-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.ccm-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #95a5a6;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ccm-close:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.ccm-modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.ccm-modal-body > p {
    margin: 0 0 20px 0;
    color: #555;
    line-height: 1.5;
}

/* ===== COOKIE CATEGORIES ===== */
.ccm-category {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: #fafbfc;
    transition: border-color 0.2s ease;
}

.ccm-category:hover {
    border-color: #3498db;
}

.ccm-category-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.ccm-category-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.ccm-category-description {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    margin-left: 45px;
}

/* ===== TOGGLE SWITCHES ===== */
.ccm-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin: 0;
}

.ccm-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ccm-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.ccm-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ccm-switch input:checked + .ccm-slider {
    background-color: #3498db;
}

.ccm-switch input:focus + .ccm-slider {
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

.ccm-switch input:checked + .ccm-slider:before {
    transform: translateX(26px);
}

.ccm-switch input:disabled + .ccm-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.ccm-switch input:disabled + .ccm-slider:before {
    background-color: #f8f9fa;
}

/* ===== MODAL FOOTER ===== */
.ccm-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: #f8f9fa;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .ccm-banner {
        padding: 15px;
    }
    
    .ccm-banner-content {
        gap: 12px;
    }
    
    .ccm-banner-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ccm-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ccm-modal {
        padding: 10px;
    }
    
    .ccm-modal-content {
        max-height: 95vh;
    }
    
    .ccm-modal-header,
    .ccm-modal-body,
    .ccm-modal-footer {
        padding: 20px;
    }
    
    .ccm-modal-footer {
        flex-direction: column;
    }
    
    .ccm-modal-footer .ccm-btn {
        width: 100%;
    }
    
    .ccm-category-description {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .ccm-category-header {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .ccm-banner-title {
        font-size: 16px;
    }
    
    .ccm-banner-message {
        font-size: 13px;
    }
    
    .ccm-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .ccm-modal-header h2 {
        font-size: 18px;
    }
    
    .ccm-category {
        padding: 15px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .ccm-btn,
    .ccm-slider,
    .ccm-slider:before,
    .ccm-modal-content {
        transition: none;
        animation: none;
    }
}

.ccm-btn:focus,
.ccm-close:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .ccm-banner,
    .ccm-modal {
        display: none !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .ccm-banner {
        border: 2px solid;
    }
    
    .ccm-category {
        border-width: 2px;
    }
    
    .ccm-btn {
        border: 2px solid currentColor;
    }
}

/* ===== COOKIE DETAILS ===== */
.ccm-cookie-list {
    margin-top: 15px;
}

.ccm-cookie-list summary {
    cursor: pointer;
    font-size: 13px;
    color: #666;
    padding: 5px 0;
    border-bottom: 1px dotted #ddd;
    outline: none;
}

.ccm-cookie-list summary:hover {
    color: #3498db;
}

.ccm-cookie-list summary:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.ccm-cookies {
    margin-top: 10px;
    padding: 10px 0;
}

.ccm-cookie-tag {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    padding: 4px 8px;
    margin: 2px 4px 2px 0;
    border-radius: 3px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.ccm-cookie-tag:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.ccm-cookie-tag.ccm-necessary {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.ccm-cookie-tag.ccm-functional {
    background: #ffeaa7;
    color: #856404;
    border-color: #ffeaa7;
}

.ccm-cookie-tag.ccm-analytics {
    background: #cce7ff;
    color: #004085;
    border-color: #99d6ff;
}

.ccm-cookie-tag.ccm-marketing {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* ===== ADMIN PLUGIN DETECTION STYLES ===== */
.ccm-no-plugins {
    background: #fff;
    padding: 20px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.ccm-detected-plugins {
    background: #fff;
    padding: 20px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin: 20px 0;
}

.ccm-plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ccm-plugin-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #ddd;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ccm-plugin-card.ccm-category-analytics {
    border-left-color: #3498db;
}

.ccm-plugin-card.ccm-category-marketing {
    border-left-color: #e74c3c;
}

.ccm-plugin-card.ccm-category-functional {
    border-left-color: #f39c12;
}

.ccm-plugin-card.ccm-category-necessary {
    border-left-color: #27ae60;
}

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

.ccm-plugin-header h4 {
    margin: 0;
    font-size: 14px;
    color: #2c3e50;
}

.ccm-plugin-description {
    font-size: 13px;
    color: #666;
    margin: 10px 0;
    line-height: 1.4;
}

.ccm-plugin-cookies {
    margin-top: 12px;
}

.ccm-plugin-cookies strong {
    font-size: 12px;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.ccm-cookie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ccm-category-badge {
    background: #ddd;
    color: #666;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.ccm-category-badge.ccm-analytics {
    background: #3498db;
    color: white;
}

.ccm-category-badge.ccm-marketing {
    background: #e74c3c;
    color: white;
}

.ccm-category-badge.ccm-functional {
    background: #f39c12;
    color: white;
}

.ccm-category-badge.ccm-necessary {
    background: #27ae60;
    color: white;
}

.ccm-cookies-summary {
    border-top: 2px solid #eee;
    padding-top: 20px;
}

.ccm-cookies-summary h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
}

.ccm-category-summary {
    margin-bottom: 20px;
}

.ccm-category-summary h4 {
    margin: 0 0 8px 0;
    color: #555;
    font-size: 14px;
}

/* ===== ENHANCED MODAL STYLES ===== */
.ccm-category {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: #fafbfc;
    transition: all 0.2s ease;
}

.ccm-category:hover {
    border-color: #3498db;
    background: #f8f9fb;
}

.ccm-category.ccm-category-necessary {
    background: #f0f8f0;
    border-color: #c3e6cb;
}

.ccm-category.ccm-category-functional {
    background: #fffaf0;
    border-color: #ffeaa7;
}

.ccm-category.ccm-category-analytics {
    background: #f0f8ff;
    border-color: #99d6ff;
}

.ccm-category.ccm-category-marketing {
    background: #fff5f5;
    border-color: #f5c6cb;
}

/* ===== UTILITIES ===== */
.ccm-hidden {
    display: none !important;
}

.ccm-fade-in {
    animation: ccmFadeIn 0.3s ease-out;
}

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

.ccm-fade-out {
    animation: ccmFadeOut 0.3s ease-out forwards;
}

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

/* ===== LOADING STATES ===== */
.ccm-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

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

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

/* ===== INTELLIGENT CLASSIFIER STYLES ===== */
.ccm-realtime-controls {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ccm-realtime-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.ccm-realtime-content {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: ccmModalFadeIn 0.3s ease-out;
}

.ccm-realtime-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ccm-realtime-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.ccm-realtime-stats {
    padding: 20px;
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.ccm-realtime-stat {
    text-align: center;
    flex: 1;
}

.ccm-stat-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
    animation: ccmCounterPulse 2s ease-in-out infinite;
}

.ccm-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ccm-realtime-results {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.ccm-realtime-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.ccm-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: ccmSpin 1s linear infinite;
}

.ccm-realtime-category {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ccm-realtime-category h4 {
    margin: 0;
    padding: 12px 15px;
    background: #3498db;
    color: white;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ccm-category-necessary h4 {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.ccm-category-functional h4 {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.ccm-category-analytics h4 {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.ccm-category-marketing h4 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.ccm-realtime-cookies {
    padding: 15px;
    background: #fafbfc;
}

.ccm-realtime-cookie {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.ccm-realtime-cookie:hover {
    background: rgba(52, 152, 219, 0.05);
}

.ccm-realtime-cookie:last-child {
    border-bottom: none;
}

.ccm-completion-summary {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    border-radius: 8px;
}

.ccm-completion-summary h4 {
    margin: 0 0 15px 0;
    font-size: 24px;
}

.ccm-completion-summary p {
    margin: 5px 0;
    font-size: 16px;
}

/* ===== CLASSIFICATION ANIMATIONS ===== */
@keyframes ccmCounterPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes ccmClassificationGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(52, 152, 219, 0.3); }
    50% { box-shadow: 0 0 20px rgba(52, 152, 219, 0.6); }
}

.ccm-cookie-item.ccm-newly-classified {
    animation: ccmClassificationGlow 2s ease-in-out;
}

/* ===== CONFIDENCE INDICATORS ===== */
.ccm-confidence-indicator {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.ccm-confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c 0%, #f39c12 50%, #27ae60 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.ccm-confidence-high .ccm-confidence-fill {
    background: #27ae60;
}

.ccm-confidence-medium .ccm-confidence-fill {
    background: #f39c12;
}

.ccm-confidence-low .ccm-confidence-fill {
    background: #e74c3c;
}

/* ===== CLASSIFICATION METHODS ===== */
.ccm-method-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ccm-method-pattern_match {
    background: #d4edda;
    color: #155724;
}

.ccm-method-heuristic_analysis {
    background: #cce7ff;
    color: #004085;
}

.ccm-method-plugin_detection {
    background: #fff3cd;
    color: #856404;
}

.ccm-method-unknown {
    background: #f8d7da;
    color: #721c24;
}

/* ===== INTELLIGENT CLASSIFIER STYLES ===== */
.ccm-realtime-controls {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ccm-realtime-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.ccm-realtime-content {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: ccmModalFadeIn 0.3s ease-out;
}

.ccm-realtime-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ccm-realtime-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.ccm-realtime-stats {
    padding: 20px;
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.ccm-realtime-stat {
    text-align: center;
    flex: 1;
}

.ccm-stat-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
    animation: ccmCounterPulse 2s ease-in-out infinite;
}

.ccm-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ccm-realtime-results {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.ccm-realtime-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.ccm-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: ccmSpin 1s linear infinite;
}

.ccm-realtime-category {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ccm-realtime-category h4 {
    margin: 0;
    padding: 12px 15px;
    background: #3498db;
    color: white;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ccm-category-necessary h4 {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.ccm-category-functional h4 {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.ccm-category-analytics h4 {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.ccm-category-marketing h4 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.ccm-realtime-cookies {
    padding: 15px;
    background: #fafbfc;
}

.ccm-realtime-cookie {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.ccm-realtime-cookie:hover {
    background: rgba(52, 152, 219, 0.05);
}

.ccm-realtime-cookie:last-child {
    border-bottom: none;
}

.ccm-completion-summary {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    border-radius: 8px;
}

.ccm-completion-summary h4 {
    margin: 0 0 15px 0;
    font-size: 24px;
}

.ccm-completion-summary p {
    margin: 5px 0;
    font-size: 16px;
}

/* ===== CLASSIFICATION ANIMATIONS ===== */
@keyframes ccmCounterPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes ccmClassificationGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(52, 152, 219, 0.3); }
    50% { box-shadow: 0 0 20px rgba(52, 152, 219, 0.6); }
}

.ccm-cookie-item.ccm-newly-classified {
    animation: ccmClassificationGlow 2s ease-in-out;
}

/* ===== CONFIDENCE INDICATORS ===== */
.ccm-confidence-indicator {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.ccm-confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c 0%, #f39c12 50%, #27ae60 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.ccm-confidence-high .ccm-confidence-fill {
    background: #27ae60;
}

.ccm-confidence-medium .ccm-confidence-fill {
    background: #f39c12;
}

.ccm-confidence-low .ccm-confidence-fill {
    background: #e74c3c;
}

/* ===== CLASSIFICATION METHODS ===== */
.ccm-method-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ccm-method-pattern_match {
    background: #d4edda;
    color: #155724;
}

.ccm-method-heuristic_analysis {
    background: #cce7ff;
    color: #004085;
}

.ccm-method-plugin_detection {
    background: #fff3cd;
    color: #856404;
}

.ccm-method-unknown {
    background: #f8d7da;
    color: #721c24;
}

/* ===== ADMIN RESPONSIVE ===== */
@media (max-width: 768px) {
    .ccm-plugins-grid {
        grid-template-columns: 1fr;
    }
    
    .ccm-plugin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .ccm-cookie-tags {
        justify-content: flex-start;
    }
    
    .ccm-realtime-overlay {
        padding: 10px;
    }
    
    .ccm-realtime-content {
        max-height: 95vh;
    }
    
    .ccm-realtime-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .ccm-realtime-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .ccm-realtime-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ccm-realtime-controls .button {
        width: 100%;
        justify-content: center;
    }
}
    
    .ccm-realtime-content {
        max-height: 95vh;
    }
    
    .ccm-realtime-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .ccm-realtime-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .ccm-realtime-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ccm-realtime-controls .button {
        width: 100%;
        justify-content: center;
    }
}