/* Modern Light Theme for Report Dashboard */
.xaitrm-dashboard {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.xaitrm-dashboard h2 {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.xaitrm-instructions {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.1rem;
    border: 2px dashed #d1d9f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.xaitrm-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.xaitrm-controls input[type="text"],
.xaitrm-controls select {
    padding: 12px;
    border: 2px dashed #d1d9f0;
    border-radius: 8px;
    background: #ffffff;
    color: #3E3F5E; /* Text color set to #3E3F5E */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    min-width: 200px;
    transition: all 0.3s ease;
}

.xaitrm-controls input[type="text"]:focus,
.xaitrm-controls select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
    outline: none;
}

.xaitrm-button {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}

.xaitrm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* 10 Gradient Patterns */
/* Modern Vibrant Dark-Light Gradient Combinations */
.xaitrm-gradient-0 { background: linear-gradient(135deg, #1a1a2e 0%, #4facfe 100%); } /* Dark Navy to Bright Blue */
.xaitrm-gradient-1 { background: linear-gradient(135deg, #2c1810 0%, #ff6b6b 100%); } /* Dark Brown to Coral */
.xaitrm-gradient-2 { background: linear-gradient(135deg, #0f3460 0%, #00d4ff 100%); } /* Deep Blue to Cyan */
.xaitrm-gradient-3 { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); } /* Dark Blue to Royal */
.xaitrm-gradient-4 { background: linear-gradient(135deg, #8e44ad 0%, #f093fb 100%); } /* Purple to Pink */
.xaitrm-gradient-5 { background: linear-gradient(135deg, #134e5e 0%, #71b280 100%); } /* Dark Teal to Green */
.xaitrm-gradient-6 { background: linear-gradient(135deg, #d35400 0%, #ffeaa7 100%); } /* Orange to Light Yellow */
.xaitrm-gradient-7 { background: linear-gradient(135deg, #2c3e50 0%, #fd79a8 100%); } /* Dark Slate to Pink */
.xaitrm-gradient-8 { background: linear-gradient(135deg, #1abc9c 0%, #a8e6cf 100%); } /* Teal to Mint */
.xaitrm-gradient-9 { background: linear-gradient(135deg, #8b0000 0%, #ff7675 100%); } /* Dark Red to Light Red */
.xaitrm-gradient-10 { background: linear-gradient(135deg, #1a1a2e 0%, #4facfe 100%); } /* Dark Navy to Bright Blue */
.xaitrm-gradient-11 { background: linear-gradient(135deg, #2c1810 0%, #ff6b6b 100%); } /* Dark Brown to Coral */
.xaitrm-gradient-12 { background: linear-gradient(135deg, #0f3460 0%, #00d4ff 100%); } /* Deep Blue to Cyan */
.xaitrm-gradient-13 { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); } /* Dark Blue to Royal */
.xaitrm-gradient-14 { background: linear-gradient(135deg, #8e44ad 0%, #f093fb 100%); } /* Purple to Pink */
.xaitrm-gradient-15 { background: linear-gradient(135deg, #134e5e 0%, #71b280 100%); } /* Dark Teal to Green */
.xaitrm-gradient-16 { background: linear-gradient(135deg, #d35400 0%, #ffeaa7 100%); } /* Orange to Light Yellow */
.xaitrm-gradient-17 { background: linear-gradient(135deg, #2c3e50 0%, #fd79a8 100%); } /* Dark Slate to Pink */
.xaitrm-gradient-18 { background: linear-gradient(135deg, #1abc9c 0%, #a8e6cf 100%); } /* Teal to Mint */
.xaitrm-gradient-19 { background: linear-gradient(135deg, #8b0000 0%, #ff7675 100%); } /* Dark Red to Light Red */


.xaitrm-success-message {
    background: linear-gradient(45deg, #22c55e, #86efac);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}
.xaitrm-error-message {
    background: linear-gradient(45deg, #ef4444, #f87171);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}


.xaitrm-close-success,
.xaitrm-close-error {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.xaitrm-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.xaitrm-tool-card {
    background: #ffffff;
    border: 2px dashed #d1d9f0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible; /* Ensure badges can extend outside card */
}

.xaitrm-tool-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}



.xaitrm-tool-button {
    border: none;
    padding: 20px;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 100%;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: visible; /* Ensure badges can extend outside button */
}

.xaitrm-tool-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.xaitrm-tool-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.xaitrm-tool-status {
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.xaitrm-tool-status.active {
    background: #22c55e;
    color: white;
}

.xaitrm-tool-status.inactive {
    background: #ef4444;
    color: white;
}

.xaitrm-report-form {
    margin-top: 10px;
    width: 100%;
}

.xaitrm-report-comment {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 2px dashed #d1d9f0;
    background: #ffffff;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.xaitrm-submit-report {
    width: 100%;
}

.xaitrm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.xaitrm-modal-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 2px dashed #d1d9f0;
    /* Add flex properties to center content */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; /* Center text content */
}

.xaitrm-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.xaitrm-modal-content h3 {
    margin-top: 0;
    color: #1e3a8a;
    margin-bottom: 15px; /* Add space below heading */
}

.xaitrm-modal-content p,
.xaitrm-modal-content ol {
    margin: 0;
    padding: 0; /* Remove default padding */
    color: #333;
    text-align: left; /* Align list items to the left */
    width: 100%; /* Ensure list takes full width */
    margin-bottom: 15px; /* Add space below list/paragraph */
}

.xaitrm-modal-content ol li {
    margin-bottom: 8px; /* Space between list items */
    padding-left: 20px; /* Add some left padding for list bullet */
    position: relative;
}

.xaitrm-modal-content ol li::before {
    content: '•'; /* Custom bullet point */
    position: absolute;
    left: 0;
    color: #3b82f6; /* Bullet color */
    font-weight: bold;
}

.xaitrm-cookies-help-button {
    margin-top: 15px; /* Add margin above the button */
    width: auto; /* Allow button to size based on content */
    padding: 10px 20px; /* Adjust padding */
}


@media (max-width: 600px) {
    .xaitrm-tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .xaitrm-tool-button {
        padding: 15px;
        font-size: 1rem;
    }
    .xaitrm-controls {
        flex-direction: column;
        align-items: center;
    }
}

/* Styles for the frontend reports dashboard pagination */

/* Container for the pagination */
.xaitrm-dashboard .xaitrm-pagination {
    margin-top: 20px;
    text-align: center;
}

/* List containing the pagination links */
.xaitrm-dashboard .xaitrm-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Individual pagination list item */
.xaitrm-dashboard .xaitrm-pagination li {
    margin: 0 5px; /* Space between links */
}

/* Style for pagination links (numbers, Prev, Next) */
.xaitrm-dashboard .xaitrm-pagination .page-numbers {
    padding: 8px 12px;
    margin: 0; /* Margin handled by li */
    background: #ffffff; /* White background */
    color: #1e3a8a; /* Primary blue color */
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    display: inline-block; /* Allows padding and margin */
    font-size: 1rem;
}

/* Style for the current page link and hover effect */
.xaitrm-dashboard .xaitrm-pagination .page-numbers.current,
.xaitrm-dashboard .xaitrm-pagination .page-numbers:hover {
    background: linear-gradient(45deg, #3b82f6, #60a5fa); /* Gradient background on hover/current */
    color: white; /* White text on hover/current */
    transform: translateY(-2px); /* Slight lift effect on hover */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); /* Larger shadow on hover */
}

/* Style for the ellipsis (...) */
.xaitrm-dashboard .xaitrm-pagination span.page-numbers {
    padding: 8px 12px;
    margin: 0; /* Margin handled by li */
    background: #ffffff;
    color: #1e3a8a;
    border-radius: 8px;
    display: inline-block;
    opacity: 0.7; /* Dim the ellipsis slightly */
    cursor: default; /* No pointer cursor for ellipsis */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
     .xaitrm-dashboard .xaitrm-pagination ul {
        flex-direction: column; /* Stack links vertically */
        align-items: center; /* Center links */
    }
     .xaitrm-dashboard .xaitrm-pagination li {
        margin: 5px 0; /* Add vertical margin */
    }
}

/* Tab Styles */
.xaitrm-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
}

.xaitrm-tab-button {
    padding: 15px 30px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.xaitrm-tab-button.active {
    color: #1e3a8a;
    border-bottom-color: #1e3a8a;
}

.xaitrm-tab-button:hover {
    color: #1e3a8a;
    background: rgba(30, 58, 138, 0.05);
}

.xaitrm-tab-content {
    display: none;
}

.xaitrm-tab-content.active {
    display: block;
}

/* Badge Styles with Shine Animation - Right Corner Positioning */
.xaitrm-tool-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 4px 8px;
    border-radius: 12px;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 15;
    min-width: 40px;
    text-align: center;
    overflow: hidden;
    animation: badgeGlow 2s ease-in-out infinite alternate;
    transform: translateZ(0); /* Force hardware acceleration */
}

/* Shine effect overlay */
.xaitrm-tool-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
    z-index: 1;
}

/* Shine animation keyframes */
@keyframes shine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Badge glow animation */
@keyframes badgeGlow {
    0% {
        box-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.2),
            0 0 10px rgba(255, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(255, 255, 255, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

/* Ensure badge text stays above shine effect */
.xaitrm-tool-badge span {
    position: relative;
    z-index: 2;
}

.xaitrm-tool-button {
    position: relative;
}

/* Tools List Grid - 4 cards per row */
.xaitrm-tools-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}



/* Notes Section Styles */
.xaitrm-notes-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #e5e7eb;
}

.xaitrm-tool-note {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #1e3a8a;
    font-style: italic;
    color: #4b5563;
    line-height: 1.5;
}



/* Modern Vibrant Dark-Light Gradient Combinations with Animation */
.xaitrm-gradient-0 { 
    background: linear-gradient(135deg, #1a1a2e 0%, #4facfe 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}
.xaitrm-gradient-1 { 
    background: linear-gradient(135deg, #2c1810 0%, #ff6b6b 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}
.xaitrm-gradient-2 { 
    background: linear-gradient(135deg, #0f3460 0%, #00d4ff 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}
.xaitrm-gradient-3 { 
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}
.xaitrm-gradient-4 { 
    background: linear-gradient(135deg, #8e44ad 0%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}
.xaitrm-gradient-5 { 
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}
.xaitrm-gradient-6 { 
    background: linear-gradient(135deg, #d35400 0%, #ffeaa7 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}
.xaitrm-gradient-7 { 
    background: linear-gradient(135deg, #2c3e50 0%, #fd79a8 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}
.xaitrm-gradient-8 { 
    background: linear-gradient(135deg, #1abc9c 0%, #a8e6cf 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}
.xaitrm-gradient-9 { 
    background: linear-gradient(135deg, #8b0000 0%, #ff7675 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Gradient shift animation for badges */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .xaitrm-tools-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .xaitrm-tools-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .xaitrm-tools-grid,
    .xaitrm-tools-list-grid {
        grid-template-columns: 1fr;
    }
    
    .xaitrm-tabs {
        flex-direction: column;
    }
    
    .xaitrm-tab-button {
        margin: 5px 0;
        border-bottom: none;
        border-radius: 8px;
    }
    
    .xaitrm-tab-button.active {
        background: #1e3a8a;
        color: white;
    }
}

/* Category Tabs Styles */
.xaitrm-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.xaitrm-category-tab {
    padding: 10px 16px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.xaitrm-category-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
}

.xaitrm-category-tab.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    transform: translateY(-2px);
}

.xaitrm-category-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 2s infinite;
}

/* Category Tags for Tools */
.xaitrm-tool-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    padding: 0 10px;
}

.xaitrm-category-tag {
    display: inline-block;
    padding: 3px 8px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-size: 10px;
    font-weight: 500;
    border-radius: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Loading Indicator */
.xaitrm-loading {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #e9ecff 100%);
    border-radius: 12px;
    margin: 20px 0;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Performance optimizations */
.xaitrm-tool-card {
    will-change: transform;
    backface-visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.xaitrm-tool-card.loaded {
    opacity: 1;
    transform: translateY(0);
}

.xaitrm-tool-button {
    will-change: transform;
    backface-visibility: hidden;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .xaitrm-tool-card {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* Responsive Category Tabs */
@media (max-width: 768px) {
    .xaitrm-category-tabs {
        padding: 10px;
        gap: 6px;
    }
    
    .xaitrm-category-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .xaitrm-category-tag {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .xaitrm-loading {
        font-size: 16px;
        padding: 30px 15px;
    }
}

