/* public/css/pages/downloads.css - Downloads page specific styles */

/* CSS Variables for Downloads Page */
:root {
    --download-primary: #1B4E3B;
    --download-secondary: #267055;
    --download-accent: #3EB489;
    --download-light: #7CD2B3;
    --download-very-light: #9EDEC6;
    --download-text: #333333;
    --download-text-light: #666666;
    --download-border: #e1e5e9;
    --download-bg-light: #f8f9fa;
    --download-shadow: 0 4px 25px rgba(27, 78, 59, 0.08);
    --download-shadow-hover: 0 12px 40px rgba(27, 78, 59, 0.15);
    --download-gradient: linear-gradient(135deg, var(--download-primary) 0%, var(--download-accent) 100%);
    --download-success: #28a745;
    --download-warning: #ffc107;
    --download-danger: #dc3545;
    --download-info: #17a2b8;
    --download-border-radius: 16px;
    --download-border-radius-sm: 8px;
    --download-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   PAGE HEADER SECTION
   ======================================== */
.page-header {
    background: var(--download-gradient);
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1000px); }
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.page-title i {
    font-size: 2rem;
    margin-right: 1rem;
    opacity: 0.9;
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 400;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.4;
}

.page-stats {
    position: relative;
    z-index: 2;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.stat-item i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.stat-item span {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Breadcrumb */
.breadcrumb-section {
    background: #f8fffe;
    padding: 1rem 0;
    border-bottom: 1px solid #e1f5f0;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--download-secondary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--download-primary);
}

.breadcrumb-item.active {
    color: #666666;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--download-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--download-accent);
}

.breadcrumb-item.active {
    color: var(--download-text-light);
}

/* ========================================
   FILTER SECTION
   ======================================== */
.filter-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid var(--download-border);
}

.filter-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--download-shadow);
    border: 1px solid var(--download-border);
}

/* Search Box - Downloads Page Specific */
.search-container {
    position: relative;
}

.downloads-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--download-bg-light);
    border: 1px solid var(--download-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.downloads-search-box:focus-within {
    border-color: var(--download-accent);
    box-shadow: 0 0 0 3px rgba(62, 180, 137, 0.1);
}

.downloads-search-box i {
    position: absolute;
    left: 1rem;
    color: var(--download-text-light);
    z-index: 2;
}

.downloads-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
}

.downloads-search-input::placeholder {
    color: var(--download-text-light);
}

.downloads-search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--download-primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.downloads-search-btn:hover {
    background: var(--download-accent);
    transform: translateX(-2px);
}

/* Filters */
.filter-group {
    position: relative;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--download-border);
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6,9 12,15 18,9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.filter-select:focus {
    border-color: var(--download-accent);
    box-shadow: 0 0 0 3px rgba(62, 180, 137, 0.1);
    outline: none;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

/* ========================================
   FEATURED SECTION
   ======================================== */
.featured-section {
    background: var(--download-bg-light);
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--download-primary);
    margin-bottom: 1rem;
}

.section-header h3 i {
    color: var(--download-accent);
    margin-right: 0.5rem;
}

.results-info {
    color: var(--download-text-light);
    font-size: 1.1rem;
}

/* Featured Carousel */
.featured-carousel {
    position: relative;
}

.featured-download-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--download-shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--download-border);
}

.featured-download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--download-shadow-hover);
}

.featured-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.file-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--download-primary), var(--download-accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.download-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.featured-badge {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
}

.badge.category-badge {
    background: var(--download-accent);
    color: white;
}

.badge.popular-badge {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.badge.new-badge {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
}

.download-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.download-title a {
    color: var(--download-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.download-title a:hover {
    color: var(--download-accent);
}

.download-excerpt {
    color: var(--download-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.download-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.download-meta span {
    display: flex;
    align-items: center;
    color: var(--download-text-light);
    font-size: 0.9rem;
}

.download-meta i {
    margin-right: 0.5rem;
    color: var(--download-accent);
}

.download-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.featured-carousel .carousel-control-prev,
.featured-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--download-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.featured-carousel .carousel-control-prev {
    left: -25px;
}

.featured-carousel .carousel-control-next {
    right: -25px;
}

.featured-carousel .carousel-control-prev:hover,
.featured-carousel .carousel-control-next:hover {
    opacity: 1;
    background: var(--download-accent);
}

/* ========================================
   DOWNLOADS GRID
   ======================================== */
.downloads-content {
    padding: 4rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.download-card {
    background: white;
    border-radius: var(--download-border-radius);
    overflow: hidden;
    box-shadow: var(--download-shadow);
    transition: var(--download-transition);
    border: 1px solid var(--download-border);
    display: flex;
    flex-direction: column;
    position: relative;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--download-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--download-transition);
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--download-shadow-hover);
}

.download-card:hover::before {
    transform: scaleX(1);
}

.download-header {
    padding: 2rem 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.download-content {
    padding: 1rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.download-footer {
    padding: 0 2rem 2rem;
    margin-top: auto;
}

.file-info {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--download-border);
    margin-bottom: 1.5rem;
}

.file-type {
    background: var(--download-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(62, 180, 137, 0.3);
}

.file-size {
    background: var(--download-bg-light);
    color: var(--download-text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--download-border);
}

.download-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
}

.download-actions .btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: var(--download-border-radius-sm);
    transition: var(--download-transition);
}

.download-actions .btn-primary {
    background: var(--download-gradient);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.download-actions .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.download-actions .btn-primary:hover::before {
    left: 100%;
}

.download-actions .btn-outline-secondary {
    border: 2px solid var(--download-border);
    color: var(--download-text);
    background: white;
}

.download-actions .btn-outline-secondary:hover {
    border-color: var(--download-accent);
    color: var(--download-accent);
    background: rgba(62, 180, 137, 0.05);
}

/* Featured Download Cards */
.featured-download-card {
    background: white;
    border-radius: var(--download-border-radius);
    overflow: hidden;
    box-shadow: var(--download-shadow);
    transition: var(--download-transition);
    height: 100%;
    border: 1px solid var(--download-border);
    position: relative;
}

.featured-download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--download-primary) 0%, var(--download-accent) 100%);
}

.featured-download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--download-primary) 0%, var(--download-accent) 100%);
}

.featured-download-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(27, 78, 59, 0.15);
}

.featured-content {
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.file-icon {
    width: 70px;
    height: 70px;
    background: var(--download-gradient);
    border-radius: var(--download-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(27, 78, 59, 0.15);
    position: relative;
    overflow: hidden;
}

.file-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: iconShimmer 2s infinite;
}

@keyframes iconShimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--download-shadow);
}

.empty-icon {
    font-size: 4rem;
    color: var(--download-text-light);
    margin-bottom: 2rem;
}

.empty-state h4 {
    color: var(--download-primary);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--download-text-light);
    margin-bottom: 2rem;
}

/* ========================================
   SIDEBAR STYLES
   ======================================== */
.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--download-shadow);
    border: 1px solid var(--download-border);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--download-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--download-bg-light);
    display: flex;
    align-items: center;
}

.widget-title i {
    margin-right: 0.5rem;
    color: var(--download-accent);
}

.widget-content {
    color: var(--download-text);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--download-bg-light);
    border-radius: 8px;
    color: var(--download-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-list a:hover,
.category-list a.active {
    background: var(--download-accent);
    color: white;
    transform: translateX(5px);
}

.count {
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-list a.active .count {
    background: rgba(255,255,255,0.3);
}

/* Type List */
.type-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.type-list li {
    margin-bottom: 0.5rem;
}

.type-list a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--download-bg-light);
    border-radius: 8px;
    color: var(--download-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.type-list a:hover {
    background: var(--download-accent);
    color: white;
    transform: translateX(5px);
}

.type-list i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--download-bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: var(--download-accent);
    color: white;
    transform: translateY(-3px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--download-primary);
}

.stat-card:hover .stat-number {
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--download-text-light);
}

.stat-card:hover .stat-label {
    color: rgba(255,255,255,0.9);
}

/* Contact Info */
.contact-info {
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 0.75rem;
    color: var(--download-accent);
    width: 20px;
    text-align: center;
}

/* ========================================
   DOWNLOAD DETAIL PAGE
   ======================================== */
.download-detail-section {
    padding: 3rem 0;
}

.download-detail {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--download-shadow);
    margin-bottom: 3rem;
}

.download-header {
    padding: 2rem 2rem 0;
}

.download-header .download-badges {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.download-header .download-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--download-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.download-header .download-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--download-border);
}

.meta-item {
    display: flex;
    align-items: center;
    color: var(--download-text-light);
}

.meta-item i {
    margin-right: 0.75rem;
    color: var(--download-accent);
    width: 20px;
    text-align: center;
}

/* File Preview Card */
.file-preview-card {
    margin: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--download-border-radius);
    padding: 2.5rem;
    border: 2px solid var(--download-border);
    box-shadow: var(--download-shadow);
    position: relative;
    overflow: hidden;
}

.file-preview-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 6px;
    background: var(--download-gradient);
    border-radius: var(--download-border-radius) var(--download-border-radius) 0 0;
}

.file-preview-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.file-icon-large {
    width: 100px;
    height: 100px;
    background: var(--download-gradient);
    border-radius: var(--download-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(27, 78, 59, 0.15);
    position: relative;
    overflow: hidden;
}

.file-icon-large::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.file-details {
    flex-grow: 1;
}

.file-details h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--download-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.file-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: rgba(62, 180, 137, 0.05);
    border-radius: var(--download-border-radius-sm);
    border-left: 4px solid var(--download-accent);
}

.info-item .label {
    font-size: 0.9rem;
    color: var(--download-text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .value {
    font-weight: 700;
    color: var(--download-primary);
    font-size: 1.1rem;
}

.file-preview-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed var(--download-border);
}

/* PDF Preview Section */
.pdf-preview-section {
    margin: 2rem;
    background: white;
    border-radius: var(--download-border-radius);
    box-shadow: var(--download-shadow);
    overflow: hidden;
    border: 1px solid var(--download-border);
}

.pdf-preview-header {
    background: var(--download-gradient);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-preview-header h5 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pdf-preview-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pdf-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--download-transition);
    font-size: 0.9rem;
}

.pdf-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.pdf-viewer-container {
    position: relative;
    height: 600px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--download-text-light);
}

.pdf-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--download-border);
    border-top: 3px solid var(--download-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pdf-fallback {
    padding: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.pdf-fallback-icon {
    font-size: 4rem;
    color: var(--download-accent);
    margin-bottom: 1.5rem;
}

.pdf-fallback h6 {
    color: var(--download-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.pdf-fallback p {
    color: var(--download-text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.pdf-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.pdf-thumbnail {
    aspect-ratio: 3/4;
    background: white;
    border: 2px solid var(--download-border);
    border-radius: var(--download-border-radius-sm);
    cursor: pointer;
    transition: var(--download-transition);
    position: relative;
    overflow: hidden;
}

.pdf-thumbnail:hover {
    border-color: var(--download-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(62, 180, 137, 0.2);
}

.pdf-thumbnail.active {
    border-color: var(--download-accent);
    box-shadow: 0 0 0 2px rgba(62, 180, 137, 0.3);
}

.pdf-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdf-page-number {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem;
    font-size: 0.75rem;
    text-align: center;
}

.pdf-navigation {
    padding: 1rem 2rem;
    background: var(--download-bg-light);
    border-top: 1px solid var(--download-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-page-info {
    font-weight: 500;
    color: var(--download-text);
}

.pdf-nav-buttons {
    display: flex;
    gap: 0.5rem;
}

.pdf-nav-btn {
    background: var(--download-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--download-border-radius-sm);
    cursor: pointer;
    transition: var(--download-transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pdf-nav-btn:hover:not(:disabled) {
    background: var(--download-accent);
    transform: translateY(-1px);
}

.pdf-nav-btn:disabled {
    background: var(--download-text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--download-border-radius);
    transition: var(--download-transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-lg:hover::before {
    left: 100%;
}

/* Download Description */
.download-description {
    padding: 0 2rem 2rem;
}

.download-description h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--download-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.download-description h3 i {
    margin-right: 0.5rem;
    color: var(--download-accent);
}

.description-content {
    color: var(--download-text);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Download Instructions */
.download-instructions {
    padding: 0 2rem 2rem;
}

.download-instructions h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--download-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.download-instructions h3 i {
    margin-right: 0.5rem;
    color: var(--download-accent);
}

.instruction-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruction-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--download-bg-light);
    border-radius: 10px;
    align-items: flex-start;
}

.instruction-list li:last-child {
    margin-bottom: 0;
}

.instruction-list i {
    width: 30px;
    height: 30px;
    background: var(--download-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.instruction-list strong {
    color: var(--download-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.instruction-list p {
    color: var(--download-text-light);
    margin: 0;
    line-height: 1.6;
}

/* Download Footer */
.download-footer {
    padding: 2rem;
    border-top: 1px solid var(--download-border);
    background: var(--download-bg-light);
}

.download-info {
    margin-bottom: 2rem;
}

.info-group h6 {
    font-weight: 600;
    color: var(--download-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.info-group h6 i {
    margin-right: 0.5rem;
    color: var(--download-accent);
}

.info-group p {
    margin-bottom: 0.5rem;
    color: var(--download-text);
}

.category-link {
    color: var(--download-accent);
    text-decoration: none;
    font-weight: 600;
}

.category-link:hover {
    color: var(--download-primary);
}

/* Share Section */
.share-section {
    border-top: 1px solid var(--download-border);
    padding-top: 2rem;
}

.share-section h6 {
    font-weight: 600;
    color: var(--download-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.share-section h6 i {
    margin-right: 0.5rem;
    color: var(--download-accent);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.email { background: #6c757d; }
.share-btn.copy { background: var(--download-primary); }

/* Related Downloads */
.related-downloads {
    margin-top: 3rem;
}

.related-downloads .section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--download-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.related-downloads .section-title i {
    margin-right: 0.5rem;
    color: var(--download-accent);
}

.related-download-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--download-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--download-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-download-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--download-shadow-hover);
}

.related-download-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.related-download-content {
    padding: 1rem 1.5rem;
    flex-grow: 1;
}

.related-download-content h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-download-content h6 a {
    color: var(--download-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-download-content h6 a:hover {
    color: var(--download-accent);
}

.related-download-excerpt {
    color: var(--download-text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.related-download-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.related-download-meta span {
    display: flex;
    align-items: center;
    color: var(--download-text-light);
    font-size: 0.85rem;
}

.related-download-meta i {
    margin-right: 0.4rem;
    color: var(--download-accent);
}

.related-download-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

/* Quick Download Widget */
.quick-download-widget .quick-download-card {
    background: var(--download-bg-light);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.file-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    text-align: left;
}

.file-summary .file-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
}

.file-summary .file-details h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--download-primary);
    margin-bottom: 0.5rem;
}

.file-specs {
    display: flex;
    gap: 0.5rem;
}

.file-specs .file-type,
.file-specs .file-size {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.file-specs .file-type {
    background: var(--download-accent);
    color: white;
}

.file-specs .file-size {
    background: var(--download-border);
    color: var(--download-text);
}

/* Download Info Widget */
.download-info-widget {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-info-widget .info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--download-bg-light);
    border-radius: 8px;
}

.download-info-widget .info-item i {
    width: 30px;
    height: 30px;
    background: var(--download-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.download-info-widget .info-item div {
    flex-grow: 1;
}

.download-info-widget .info-item strong {
    display: block;
    color: var(--download-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.download-info-widget .info-item span {
    color: var(--download-text-light);
    font-size: 0.9rem;
}

/* Popular Downloads Sidebar */
.popular-downloads-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-download-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--download-bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.popular-download-item:hover {
    background: var(--download-accent);
    color: white;
}

.popular-download-icon {
    width: 40px;
    height: 40px;
    background: var(--download-primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.popular-download-item:hover .popular-download-icon {
    background: white;
    color: var(--download-accent);
}

.popular-download-content {
    flex-grow: 1;
}

.popular-download-content h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.popular-download-content h6 a {
    color: var(--download-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-download-item:hover .popular-download-content h6 a {
    color: white;
}

.popular-download-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.popular-download-meta span {
    display: flex;
    align-items: center;
    color: var(--download-text-light);
    font-size: 0.8rem;
}

.popular-download-item:hover .popular-download-meta span {
    color: rgba(255,255,255,0.9);
}

.popular-download-meta i {
    margin-right: 0.4rem;
    color: var(--download-accent);
}

.popular-download-item:hover .popular-download-meta i {
    color: rgba(255,255,255,0.9);
}

/* Navigation Links */
.navigation-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* ========================================
   FILE TYPE ICON COLORS
   ======================================== */
.file-icon.file-pdf,
.file-icon-large.file-pdf {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.file-icon.file-doc,
.file-icon-large.file-doc {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.file-icon.file-excel,
.file-icon-large.file-excel {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.file-icon.file-powerpoint,
.file-icon-large.file-powerpoint {
    background: linear-gradient(135deg, #fd7e14, #e55100);
}

.file-icon.file-archive,
.file-icon-large.file-archive {
    background: linear-gradient(135deg, #6f42c1, #5a2d91);
}

.file-icon.file-image,
.file-icon-large.file-image {
    background: linear-gradient(135deg, #e83e8c, #d91a72);
}

.file-icon.file-video,
.file-icon-large.file-video {
    background: linear-gradient(135deg, #dc3545, #bd2130);
}

.file-icon.file-audio,
.file-icon-large.file-audio {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}

.file-icon.file-code,
.file-icon-large.file-code {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.file-icon.file-text,
.file-icon-large.file-text {
    background: linear-gradient(135deg, #6c757d, #545b62);
}

.file-icon.file-default,
.file-icon-large.file-default {
    background: linear-gradient(135deg, var(--download-primary), var(--download-accent));
}

/* Popular download icon variations */
.popular-download-icon.file-pdf { background: #dc3545; }
.popular-download-icon.file-doc { background: #007bff; }
.popular-download-icon.file-excel { background: #28a745; }
.popular-download-icon.file-powerpoint { background: #fd7e14; }
.popular-download-icon.file-archive { background: #6f42c1; }
.popular-download-icon.file-image { background: #e83e8c; }
.popular-download-icon.file-video { background: #dc3545; }
.popular-download-icon.file-audio { background: #17a2b8; }
.popular-download-icon.file-code { background: #ffc107; }
.popular-download-icon.file-text { background: #6c757d; }
.popular-download-icon.file-default { background: var(--download-primary); }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1400px) {
    .downloads-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 1200px) {
    .downloads-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.5rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .file-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}

@media (max-width: 991px) {
    .page-header {
        padding: 4rem 0 3rem;
    }
    
    .page-title {
        font-size: 2.25rem;
    }
    
    .page-stats {
        margin-top: 3rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat-item {
        flex: 1;
        min-width: 250px;
        padding: 1.25rem;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        position: static;
        margin-top: 4rem;
    }
    
    .file-preview-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .file-preview-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .file-preview-actions .btn-lg {
        padding: 1rem 2rem;
    }
    
    .pdf-viewer-container {
        height: 500px;
    }
    
    .pdf-thumbnail-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .stat-item {
        min-width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .stat-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .filter-card {
        padding: 1.5rem;
        border-radius: var(--download-border-radius-sm);
    }
    
    .filter-form .row > div {
        margin-bottom: 1rem;
    }
    
    .download-header .download-meta {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .download-header .download-title {
        font-size: 1.75rem;
    }
    
    .share-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .file-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .instruction-list li {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .instruction-list i {
        margin-top: 0;
    }
    
    .pdf-viewer-container {
        height: 400px;
    }
    
    .pdf-control-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .pdf-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .file-preview-card {
        margin: 1rem;
        padding: 2rem;
    }
    
    .download-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .download-actions .btn {
        flex: none;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 2.5rem 0 2rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-item i {
        font-size: 1.5rem;
    }
    
    .stat-item span {
        font-size: 1rem;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .featured-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
    
    .download-card .download-header,
    .download-card .download-content,
    .download-card .download-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .download-header {
        padding: 1.5rem 1.5rem 0;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .file-preview-card {
        margin: 0.5rem;
        padding: 1.5rem;
    }
    
    .file-icon-large {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .file-details h4 {
        font-size: 1.5rem;
    }
    
    .download-footer {
        padding: 1.5rem;
    }
    
    .file-info {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .file-type,
    .file-size {
        text-align: center;
        flex: 1;
    }
    
    .pdf-viewer-container {
        height: 350px;
    }
    
    .pdf-thumbnail-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .downloads-search-input {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .file-preview-actions {
        gap: 0.75rem;
    }
    
    .pdf-preview-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pdf-controls {
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .page-header,
    .filter-section,
    .sidebar,
    .pdf-preview-controls,
    .pdf-navigation,
    .download-actions,
    .share-buttons {
        display: none !important;
    }
    
    .download-card,
    .file-preview-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
    
    .pdf-viewer-container {
        height: auto !important;
        min-height: 500px;
    }
}

/* ========================================
   PDF PREVIEW SECTION
   ======================================== */
.pdf-preview-section {
    margin: 2rem;
    background: white;
    border-radius: var(--download-border-radius);
    padding: 2rem;
    box-shadow: var(--download-shadow);
    border: 1px solid var(--download-border);
}

.pdf-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--download-bg-light);
}

.pdf-preview-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--download-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pdf-preview-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pdf-viewer-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: var(--download-border-radius-sm);
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid var(--download-border);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--download-text-light);
}

.pdf-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--download-bg-light);
    border-top: 3px solid var(--download-accent);
    border-radius: 50%;
    animation: pdf-spin 1s linear infinite;
}

@keyframes pdf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pdf-error {
    text-align: center;
    padding: 3rem;
    color: var(--download-text-light);
}

.pdf-error i {
    font-size: 3rem;
    color: var(--download-danger);
    margin-bottom: 1rem;
}

.pdf-fallback {
    background: var(--download-bg-light);
    border-radius: var(--download-border-radius-sm);
    padding: 2rem;
    text-align: center;
    margin-top: 1rem;
}

.pdf-fallback h6 {
    color: var(--download-primary);
    margin-bottom: 1rem;
}

.pdf-fallback p {
    color: var(--download-text-light);
    margin-bottom: 1.5rem;
}

/* PDF Preview Toggle */
.preview-toggle {
    background: var(--download-accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--download-border-radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--download-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-toggle:hover {
    background: var(--download-primary);
    color: white;
}

.preview-toggle.fullscreen {
    background: var(--download-primary);
}

/* Fullscreen PDF Viewer */
.pdf-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.pdf-fullscreen .pdf-viewer-container {
    flex: 1;
    height: auto;
    border-radius: 0;
    border: none;
}

.pdf-fullscreen-header {
    background: var(--download-primary);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-fullscreen-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--download-border-radius-sm);
    transition: var(--download-transition);
}

.pdf-fullscreen-close:hover {
    background: rgba(255,255,255,0.1);
}

/* Mobile responsive for PDF viewer */
@media (max-width: 768px) {
    .pdf-viewer-container {
        height: 400px;
    }
    
    .pdf-preview-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .pdf-preview-controls {
        width: 100%;
        justify-content: center;
    }
    
    .pdf-preview-section {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* ========================================
   PAGINATION STYLES
   ======================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--download-border);
}

.pagination {
    border-radius: var(--download-border-radius);
    overflow: hidden;
    box-shadow: var(--download-shadow);
    background: white;
    border: 1px solid var(--download-border);
}

.pagination .page-link {
    color: var(--download-primary);
    background: white;
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: var(--download-transition);
    border-right: 1px solid var(--download-border);
}

.pagination .page-link:hover {
    color: white;
    background: var(--download-accent);
    border-color: var(--download-accent);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    color: white;
    background: var(--download-primary);
    border-color: var(--download-primary);
    box-shadow: 0 2px 8px rgba(27, 78, 59, 0.2);
}

.pagination .page-item.disabled .page-link {
    color: var(--download-text-light);
    background: #f8f9fa;
    border-color: var(--download-border);
    cursor: not-allowed;
}

.pagination .page-item:first-child .page-link {
    border-radius: var(--download-border-radius) 0 0 var(--download-border-radius);
}

.pagination .page-item:last-child .page-link {
    border-radius: 0 var(--download-border-radius) var(--download-border-radius) 0;
    border-right: none;
}
