/* Modern Variables */
:root {
    --primary-color: #3a86ff;
    --primary-dark: #2667e0;
    --secondary-color: #4cc9f0;
    --accent-color: #ff006e;
    --success-color: #38b000;
    --warning-color: #ffaa00;
    --error-color: #e5383b;
    --text-primary: #2b2d42;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --bg-light: #f1f5f9;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Category Colors */
    --category-finance: #22c55e;
    --category-reporting: #3b82f6;
    --category-analysis: #8b5cf6;
    --category-dashboard: #f59e0b;
    --category-automation: #ec4899;
    --category-default: #64748b;
}

/* General Resets and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Modern Header */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 1.5rem;
    margin-right: 0.625rem;
    color: var(--primary-color);
}

.header-search {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.925rem;
    transition: var(--transition);
    background-color: var(--bg-light);
}

.search-box i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.15);
}

.nav-list {
    display: flex;
    list-style: none;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
    gap: 0.5rem;
}

.admin-link:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-link i {
    font-size: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn.active {
    color: var(--primary-color);
    transform: rotate(90deg);
    background-color: var(--bg-light);
}

/* Mobile Navigation Container */
.mobile-nav-container {
    display: none;
    width: 100%;
    background-color: white;
    padding: 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    max-height: 0;
}

.mobile-nav-container.active {
    max-height: 300px;
    padding: 0.75rem 0;
}

.mobile-filters-wrapper {
    padding: 0 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Product Filtering */
.product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    background-color: var(--bg-light);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn i {
    font-size: 1rem;
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: rgba(58, 134, 255, 0.1);
    color: var(--primary-color);
}

.filter-btn:hover i {
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-btn.active i {
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.3s ease-in-out;
}

/* Product Card */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: fadeIn 0.5s ease-in-out forwards;
    opacity: 0;
    transform: translateY(10px);
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

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

/* Product Badge */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    animation: badge-pulse 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(2px);
}

.updated-badge {
    background: linear-gradient(135deg, var(--success-color), #2dd36f);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.new-badge {
    background: linear-gradient(135deg, #ff9500, #ff2d55);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.beta-badge {
    background: linear-gradient(135deg, var(--warning-color), #ffcc00);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-badge {
    background-color: var(--category-default);
    animation: none;
}

.category-badge[data-category="finance"] {
    background-color: var(--category-finance);
}

.category-badge[data-category="reporting"] {
    background-color: var(--category-reporting);
}

.category-badge[data-category="analysis"] {
    background-color: var(--category-analysis);
}

.category-badge[data-category="dashboard"] {
    background-color: var(--category-dashboard);
}

.category-badge[data-category="automation"] {
    background-color: var(--category-automation);
}

.product-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
    background-color: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-icon {
    width: 80px;
    height: 80px;
    opacity: 0.7;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Product Meta */
.product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.625rem;
}

.version-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
}

.update-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

.update-label:before {
    content: '';
    position: absolute;
    left: 0;
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Different styles for New vs Updated */
.update-label.new-label {
    color: #ff9500;
}

.update-label.new-label:before {
    background-color: #ff9500;
    animation: new-pulse 2s infinite;
}

.update-label.update-version-label {
    color: var(--success-color);
}

.update-label.update-version-label:before {
    background-color: var(--success-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

@keyframes new-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 149, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(255, 149, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 149, 0, 0);
    }
}

.file-size {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.file-size:before {
    content: '\f1c3';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.25rem;
    font-size: 0.625rem;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.925rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Product Actions */
.product-actions {
    display: flex;
    width: 100%;
    margin-top: auto;
}

.btn-download {
    flex: 1;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(58, 134, 255, 0.2);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(58, 134, 255, 0.3);
    background: linear-gradient(135deg, #2563eb, var(--primary-color));
}

.btn-download:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(58, 134, 255, 0.2);
}

.btn-download i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.btn-preview {
    display: none;
}

/* Footer */
.footer {
    background-color: white;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 680px;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background-color: var(--primary-color);
    color: white;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.modal-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.modal-header h2:before {
    content: '\f56f';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.1);
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

/* File Header Improvements */
.file-header {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.thumbnail-container {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* File Headline Improvements */
.file-headline {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* File Title and Meta Info */
.file-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.file-meta-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.file-meta-info .version-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.file-meta-info .update-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.file-meta-info .update-tag:before {
    content: '\f021';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.375rem;
}

/* Short Description */
.file-short-description {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 1;
}

.description-text {
    margin: 0;
}

/* Download Controls */
.download-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem auto;
    width: 85%;
    max-width: 450px;
}

.password-wrapper {
    width: 100%;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #f4f5f8;
    border-radius: var(--radius-md);
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.input-group i.fa-lock {
    color: #6b7280;
    margin: 0 0.5rem;
    font-size: 0.9rem;
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
}

.input-group input::placeholder {
    color: #9ca3af;
}

.toggle-password {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: #6b7280;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 2;
}

.toggle-password:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.toggle-password:active {
    background: rgba(0, 0, 0, 0.1);
}

.input-help-text {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.4rem;
    margin-left: 0.5rem;
}

/* Update Logs Improvements */
.update-logs {
    margin-bottom: 1.25rem;
    background-color: #f8f9fc;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid #e6e8f0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
}

.update-logs h4, .file-guide-section h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.update-logs h4:after, .file-guide-section h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.update-content {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.75rem;
    margin-top: 0.5rem;
}

/* Quick Guide Improvements */
.file-guide-section {
    background-color: #f8f9fc;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e6e8f0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
}

.guide-content {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Thumbnail Image */
.thumbnail-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease;
}

.thumbnail-container:hover img {
    transform: scale(1.05);
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    background-color: white;
    box-shadow: var(--shadow-md);
    transform: translateX(110%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
    display: flex;
    align-items: center;
    max-width: 350px;
    border-left: 4px solid var(--primary-color);
    min-width: 280px;
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    margin-right: 0.875rem;
    font-size: 1.25rem;
}

.notification-content {
    flex: 1;
    word-break: break-word;
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.success i {
    color: var(--success-color);
}

.notification.error {
    border-left-color: var(--error-color);
}

.notification.error i {
    color: var(--error-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

.notification.warning i {
    color: var(--warning-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .header-search {
        max-width: 300px;
        margin: 0 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .header-search {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 0.75rem 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin: 0;
        max-width: none;
        z-index: 99;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    .header-search.mobile-visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-nav-container {
        display: block;
    }
    
    .products-section .product-filters {
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .file-header {
        flex-direction: column;
    }
    
    .thumbnail-container {
        width: 100%;
        height: 180px;
    }
    
    .file-headline {
        width: 100%;
    }
    
    .download-controls {
        width: 90%;
        max-width: 400px;
    }
    
    .download-btn {
        width: 90%;
    }
}

@media (max-width: 576px) {
    .product-filters {
        margin-bottom: 1.5rem;
        padding: 0.75rem;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .download-controls {
        width: 100%;
    }
    
    .download-btn {
        width: 100%;
        max-width: none;
    }
    
    .file-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-title-wrapper .file-meta-info {
        margin-top: 0.25rem;
    }
}

@media (max-width: 480px) {
    .notification {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: calc(100% - 40px);
        max-width: none;
        transform: translateY(110%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .file-header {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .thumbnail-container {
        height: 140px;
    }
}

/* Update Version Info */
.update-version-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.update-date {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* Update Changes List */
.update-changes {
    list-style-type: none;
    padding-left: 0.25rem;
}

.update-changes li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.update-changes li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
    line-height: 1;
}

/* Thumbnail Image */
.thumbnail-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-icon {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* Update Item Styling */
.update-item {
    padding: 0.875rem 0;
    border-bottom: 1px solid #e6e8f0;
    animation: fadeIn 0.4s ease-out forwards;
    opacity: 0;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
}

.update-item:last-child {
    border-bottom: none;
}

.update-version-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.update-version {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.update-date {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    background-color: rgba(0, 0, 0, 0.03);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* Loading Animation */
.loading {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(67, 97, 238, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

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

/* Ripple Effect */
.btn-download, .admin-link, .download-btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    z-index: 2;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Shake animation for password error */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Error and placeholder messages */
.error-message, .no-content {
    color: var(--text-tertiary);
    font-style: italic;
    padding: 1rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-md);
}

.error-message {
    color: var(--error-color);
    border-left: 3px solid var(--error-color);
}

.no-content {
    border-left: 3px solid var(--text-tertiary);
}

/* No Results Message */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 1rem auto;
    text-align: center;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
    max-width: 500px;
    gap: 1rem;
}

.no-results i {
    font-size: 2.5rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
    margin: 0;
}

/* Enhanced Notification System */
.notification-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    max-width: 400px;
    width: calc(100% - 3rem);
}

.notification {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    margin-bottom: 1rem;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    overflow: hidden;
    border-left: 4px solid var(--primary-color);
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.notification-content {
    flex: 1;
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.success i {
    color: var(--success-color);
}

.notification.error {
    border-left-color: var(--error-color);
}

.notification.error i {
    color: var(--error-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

.notification.warning i {
    color: var(--warning-color);
}

/* Ripple Animation */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Error Styling */
.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.error-message i {
    font-size: 1rem;
}

input.error {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 1px var(--error-color) !important;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 85%;
    max-width: 320px;
    margin: 0.5rem auto;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(58, 134, 255, 0.2);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(58, 134, 255, 0.3);
    background: linear-gradient(135deg, #2563eb, var(--primary-color));
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(58, 134, 255, 0.2);
}

.download-btn i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.product-info {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    flex: 1;
    padding-bottom: 1.75rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* File title wrapper styles */
.file-title-wrapper {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Badge animation */
@keyframes badge-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }
} 