/* General Body and Container Styles */
body {
    font-family: 'Prompt', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.main-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1em;
    margin-bottom: 5px;
    opacity: 0.9;
}

.page-header .subtitle {
    font-size: 0.95em;
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Sidebar Styles (Left Column) */
.sidebar {
    width: 320px;
    padding: 25px;
    border-right: 1px solid #eee;
    background-color: #f9f9f9;
    flex-shrink: 0;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.filter-header h3 {
    font-size: 1.1em;
    margin: 0;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.filter-header h3 .toggle-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
    margin-right: 10px;
}

.filter-header h3 .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-header h3 .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 20px;
}

.filter-header h3 .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

.filter-header h3 input:checked + .slider {
    background-color: #007bff;
}

.filter-header h3 input:focus + .slider {
    box-shadow: 0 0 1px #007bff;
}

.filter-header h3 input:checked + .slider:before {
    -webkit-transform: translateX(14px);
    -ms-transform: translateX(14px);
    transform: translateX(14px);
}

.filter-header .clear-all {
    font-size: 0.9em;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.filter-header .clear-all:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Search Box Styles */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: 'Prompt', sans-serif;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

/* Filter Results */
.filter-results {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #e3f2fd;
    border-radius: 6px;
    text-align: center;
}

.filter-results p {
    margin: 0;
    font-size: 0.9em;
    color: #1976d2;
}

/* Filter Category Styles */
.filter-category {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.filter-category:last-of-type {
    border-bottom: none;
}

.filter-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-category-header:hover {
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: 4px;
}

.filter-category-header h4 {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    color: #333;
}

.filter-category-header .count {
    background-color: #007bff;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.75em;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.filter-category-header .arrow {
    font-size: 0.8em;
    color: #666;
    transition: transform 0.3s ease;
}

.filter-category-header.expanded .arrow {
    transform: rotate(180deg);
}

.filter-category-content {
    padding-left: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.filter-category-content.active {
    max-height: 300px;
}

.filter-category-content ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.filter-category-content li {
    margin-bottom: 8px;
}

.filter-category-content label {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.filter-category-content label:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.filter-category-content input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1);
}

/* Promo Box Styles */
.sidebar .promo-box {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.sidebar .promo-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: 600;
}

.sidebar .promo-box p {
    font-size: 0.85em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.sidebar .promo-box button {
    background-color: #fff;
    color: #28a745;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Prompt', sans-serif;
}

.sidebar .promo-box button:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Main Content Styles (Right Column) */
.content-area {
    flex-grow: 1;
    padding: 25px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.report-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #6610f2);
}

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

.report-card h3 {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 12px;
    color: #007bff;
    font-weight: 600;
    line-height: 1.4;
}

.report-card .meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.report-card p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.report-card .tags {
    margin-bottom: 20px;
}

.report-card .tag {
    display: inline-block;
    background-color: #f8f9fa;
    color: #495057;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
    font-weight: 500;
    transition: all 0.3s ease;
}

.report-card .tag:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.report-card .actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.report-card .add-to-cart-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Prompt', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.report-card .add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.report-card .add-to-cart-btn:active {
    transform: translateY(0);
}

.report-card .price {
    font-size: 1.3em;
    font-weight: 700;
    color: #28a745;
}

/* No Results Styles */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results i {
    font-size: 4em;
    margin-bottom: 20px;
    color: #ccc;
}

.no-results h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.no-results p {
    font-size: 1em;
    color: #666;
}

/* Loading Animation */
.loading {
    display: none;
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading i {
    font-size: 2em;
    animation: spin 1s linear infinite;
}

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

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .main-wrapper {
        margin: 10px;
    }
    .sidebar {
        width: 280px;
    }
    .report-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .main-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        max-height: none;
    }
    .report-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }
    .page-header h1 {
        font-size: 2em;
    }
    .sidebar {
        padding: 20px;
    }
    .content-area {
        padding: 20px;
    }
    .report-card {
        padding: 20px;
    }
    .report-card h3 {
        font-size: 1.1em;
    }
    .report-card p {
        font-size: 0.9em;
    }
    .report-card .add-to-cart-btn {
        padding: 10px 18px;
        font-size: 0.9em;
    }
    .report-card .price {
        font-size: 1.1em;
    }
}

@media (max-width: 576px) {
    .report-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .report-card .actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .report-card .add-to-cart-btn {
        width: 100%;
    }
    .report-card .price {
        text-align: center;
        font-size: 1.2em;
    }
}


.buy-report-btn,
.view-sample-btn {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.buy-report-btn {
    background-color: #007bff; /* Blue */
    color: #fff;
    border: 1px solid #007bff;
    margin-right: 10px;
}

.buy-report-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.view-sample-btn {
    background-color: #6c757d; /* Gray */
    color: #fff;
    border: 1px solid #6c757d;
}

.view-sample-btn:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.actions .price {
    font-size: 1.1em;
    font-weight: 700;
    color: #28a745; /* Green for price */
    margin-left: auto; /* Pushes price to the right */
}

@media (max-width: 768px) {
    .actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .actions .buy-report-btn,
    .actions .view-sample-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .actions .price {
        margin-left: 0;
        width: 100%;
        text-align: left;
    }
}

