/* Edocman Lite Public Styles - Enhanced to match full Edocman version */

/* ===== EDOCMAN CATEGORIES LISTING STYLES ===== */

.edocman-lite-categories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Categories Grid Layout */
.edocman-lite-categories .categories-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Category Item Card */
.edocman-lite-categories .category-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.edocman-lite-categories .category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.edocman-lite-categories .category-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.edocman-lite-categories .category-item:hover::before {
    opacity: 1;
}

/* Category Image */
.edocman-lite-categories .category-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.edocman-lite-categories .category-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
}

.edocman-lite-categories .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(0.9);
}

.edocman-lite-categories .category-image:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

/* No Image Placeholder */
.edocman-lite-categories .category-no-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.edocman-lite-categories .category-no-image .image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    transition: all 0.3s ease;
}

.edocman-lite-categories .category-item:hover .category-no-image .image-placeholder {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #495057;
}

.edocman-lite-categories .category-no-image .dashicons {
    font-size: 56px;
    width: 56px;
    height: 56px;
    margin-bottom: 10px;
    opacity: 0.7;
}

/* Category Content */
.edocman-lite-categories .category-content {
    padding: 25px;
    position: relative;
}

.edocman-lite-categories .category-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3e50;
}

.edocman-lite-categories .category-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    background: linear-gradient(120deg, transparent 0%, transparent 50%, #667eea 50%);
    background-size: 240% 100%;
    background-position: 100% 0;
    transition: all 0.3s ease;
    background-clip: text;
    -webkit-background-clip: text;
}

.edocman-lite-categories .category-title a:hover {
    background-position: 0 0;
    color: #667eea;
}

.edocman-lite-categories .category-description {
    margin: 12px 0 20px 0;
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Meta */
.edocman-lite-categories .category-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.edocman-lite-categories .category-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.edocman-lite-categories .category-meta span:hover {
    background: #e9ecef;
    color: #495057;
}

.edocman-lite-categories .category-meta .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.edocman-lite-categories .category-meta .document-count {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    border: 1px solid rgba(25, 118, 210, 0.2);
}

/* Category Actions */
.edocman-lite-categories .category-actions {
    margin-top: 20px;
}

.edocman-lite-categories .view-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.edocman-lite-categories .view-category-btn::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 ease;
}

.edocman-lite-categories .view-category-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.edocman-lite-categories .view-category-btn:hover::before {
    left: 100%;
}

.edocman-lite-categories .view-category-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.edocman-lite-categories .view-category-btn:hover .dashicons {
    transform: translateX(3px);
}

/* No Items State */
.edocman-lite-categories .edocman-no-items {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    border: 2px dashed #dee2e6;
    margin: 40px 0;
}

.edocman-lite-categories .no-items-icon {
    margin-bottom: 25px;
    position: relative;
}

.edocman-lite-categories .no-items-icon .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #cbd5e0;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.edocman-lite-categories .edocman-no-items h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
}

.edocman-lite-categories .edocman-no-items p {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Breadcrumb Navigation */
.edocman-breadcrumb {
    margin: 15px 0 25px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    font-size: 14px;
    color: #666;
}

.edocman-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.edocman-breadcrumb a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #5a67d8;
    text-decoration: none;
}

.edocman-breadcrumb .separator {
    margin: 0 4px;
    color: #6c757d;
}

.edocman-breadcrumb .current {
    color: #495057;
    font-weight: 600;
}

/* ===== EDOCMAN DOCUMENTS LISTING STYLES ===== */

/* ===== EDOCMAN DOCUMENTS LISTING STYLES ===== */

/* Container */
.edocman-lite-documents {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== CATEGORY HEADER ===== */
.edocman-lite-documents .category-header {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.edocman-lite-documents .category-breadcrumb {
    padding: 15px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.edocman-lite-documents .back-to-categories {
    display: inline-flex;
    align-items: center;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.edocman-lite-documents .back-to-categories:hover {
    color: #667eea;
    text-decoration: none;
}

.edocman-lite-documents .back-to-categories .dashicons {
    margin-right: 5px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.edocman-lite-documents .category-info {
    display: flex;
    padding: 30px 25px;
    gap: 25px;
    align-items: flex-start;
}

.edocman-lite-documents .category-featured-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.edocman-lite-documents .category-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edocman-lite-documents .category-details {
    flex: 1;
}

.edocman-lite-documents .category-title {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.edocman-lite-documents .category-description {
    margin-bottom: 20px;
    color: #6c757d;
    line-height: 1.6;
    font-size: 16px;
}

.edocman-lite-documents .category-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.edocman-lite-documents .document-count {
    display: inline-flex;
    align-items: center;
    background: #e3f2fd;
    color: #1976d2;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.edocman-lite-documents .document-count .dashicons {
    margin-right: 5px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ===== DOCUMENTS LIST ===== */
.edocman-lite-documents .documents-list {
    margin-bottom: 40px;
}

.edocman-lite-documents .documents-header {
    margin-bottom: 25px;
}

.edocman-lite-documents .documents-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

/* Documents Grid */
.edocman-lite-documents .documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.edocman-lite-documents .document-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.edocman-lite-documents .document-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Document Thumbnail */
.edocman-lite-documents .document-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.edocman-lite-documents .document-image {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.edocman-lite-documents .document-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.edocman-lite-documents .document-image:hover img {
    transform: scale(1.05);
}

.edocman-lite-documents .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.edocman-lite-documents .document-image:hover .image-overlay {
    opacity: 1;
}

.edocman-lite-documents .image-overlay .dashicons {
    color: white;
    font-size: 36px;
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Fallback Document Icon */
.edocman-lite-documents .document-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #666;
}

.edocman-lite-documents .document-icon i {
    font-size: 48px;
    margin-bottom: 10px;
    color: #667eea;
}

.edocman-lite-documents .file-extension {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Document Content */
.edocman-lite-documents .document-info,
.edocman-lite-documents .document-content {
    padding: 20px;
}

.edocman-lite-documents .document-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.edocman-lite-documents .document-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edocman-lite-documents .document-title a:hover {
    color: #667eea;
    text-decoration: none;
}

.edocman-lite-documents .document-title .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.edocman-lite-documents .document-short-description,
.edocman-lite-documents .document-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.edocman-lite-documents .document-short-description {
    -webkit-line-clamp: 2;
}

/* Document Meta */
.edocman-lite-documents .document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.edocman-lite-documents .document-meta span {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #6c757d;
}

.edocman-lite-documents .document-meta .dashicons {
    margin-right: 4px;
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.edocman-lite-documents .document-version {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.edocman-lite-documents .file-size,
.edocman-lite-documents .document-size {
    background: #fff3e0;
    color: #f57c00;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.edocman-lite-documents .upload-date {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.edocman-lite-documents .download-count,
.edocman-lite-documents .document-downloads {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.edocman-lite-documents .document-hits {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

/* Document Actions */
.edocman-lite-documents .document-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.edocman-lite-documents .download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.edocman-lite-documents .download-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.edocman-lite-documents .download-btn .dashicons {
    margin-right: 6px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.edocman-lite-documents .view-details-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.edocman-lite-documents .view-details-btn:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

.edocman-lite-documents .view-details-btn .dashicons {
    margin-right: 6px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ===== NO DOCUMENTS STATE ===== */
.edocman-lite-documents .no-documents {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.edocman-lite-documents .no-documents-icon {
    margin-bottom: 20px;
}

.edocman-lite-documents .no-documents-icon .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #cbd5e0;
}

.edocman-lite-documents .no-documents h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
}

.edocman-lite-documents .no-documents p {
    margin: 0 0 25px 0;
    color: #6c757d;
    font-size: 16px;
}

.edocman-lite-documents .back-btn {
    display: inline-flex;
    align-items: center;
    background: #667eea;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.edocman-lite-documents .back-btn:hover {
    background: #5a67d8;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
}

/* ===== DOCUMENT DETAIL STYLES ===== */

.edocman-lite-document-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Document Header */
.edocman-lite-document-detail .document-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.edocman-lite-document-detail .document-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50px, -50px);
}

.edocman-lite-document-detail .document-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.edocman-lite-document-detail .document-title-section {
    flex: 1;
    margin-right: 30px;
}

.edocman-lite-document-detail .document-title {
    margin: 0 0 15px 0;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: white;
}

.edocman-lite-document-detail .document-subtitle {
    margin: 0;
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.5;
}

.edocman-lite-document-detail .document-actions-header {
    flex-shrink: 0;
}

.edocman-lite-document-detail .download-btn.primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edocman-lite-document-detail .download-btn.primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.edocman-lite-document-detail .download-btn.primary .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Document Meta Bar */
.edocman-lite-document-detail .document-meta-bar,
.edocman-lite-document-detail .document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.edocman-lite-document-detail .document-header .document-meta {
    padding: 0;
    border: none;
}

.edocman-lite-document-detail .meta-item,
.edocman-lite-document-detail .document-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
}

.edocman-lite-document-detail .meta-item .dashicons,
.edocman-lite-document-detail .document-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.edocman-lite-document-detail .meta-label {
    font-weight: 600;
    opacity: 0.9;
}

.edocman-lite-document-detail .meta-value {
    font-weight: 700;
}

/* Content Wrapper */
.edocman-lite-document-detail .document-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.edocman-lite-document-detail .document-main-content {
    min-width: 0;
}

/* Document Preview Section */
.edocman-lite-document-detail .document-preview-section,
.edocman-lite-document-detail .document-thumbnail {
    margin-bottom: 40px;
}

.edocman-lite-document-detail .document-preview-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.edocman-lite-document-detail .document-preview-image,
.edocman-lite-document-detail .document-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    border-radius: 5px;
}

.edocman-lite-document-detail .preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.edocman-lite-document-detail .document-preview-container:hover .preview-overlay {
    opacity: 1;
}

.edocman-lite-document-detail .preview-zoom-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.edocman-lite-document-detail .preview-zoom-btn:hover {
    background: white;
    transform: scale(1.05);
}

/* Section Titles */
.edocman-lite-document-detail .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 25px 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    padding-bottom: 15px;
    border-bottom: 3px solid #e9ecef;
}

.edocman-lite-document-detail .section-title .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #667eea;
}

/* Document Description */
.edocman-lite-document-detail .document-description-section {
    margin-bottom: 40px;
}

.edocman-lite-document-detail .document-short-description {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #667eea;
    border-radius: 5px;
}

.edocman-lite-document-detail .document-description {
    font-size: 16px;
    line-height: 1.8;
    color: #495057;
}

.edocman-lite-document-detail .document-description p {
    margin-bottom: 20px;
}

.edocman-lite-document-detail .document-description h1,
.edocman-lite-document-detail .document-description h2,
.edocman-lite-document-detail .document-description h3,
.edocman-lite-document-detail .document-description h4,
.edocman-lite-document-detail .document-description h5,
.edocman-lite-document-detail .document-description h6 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
}

.edocman-lite-document-detail .document-description ul,
.edocman-lite-document-detail .document-description ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.edocman-lite-document-detail .document-description li {
    margin-bottom: 8px;
}

/* Info Grid */
.edocman-lite-document-detail .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.edocman-lite-document-detail .info-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
}

.edocman-lite-document-detail .info-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.edocman-lite-document-detail .info-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e9ecef;
}

.edocman-lite-document-detail .info-header .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #667eea;
}

.edocman-lite-document-detail .info-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.edocman-lite-document-detail .info-content {
    padding: 20px;
}

.edocman-lite-document-detail .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.edocman-lite-document-detail .info-row:last-child {
    border-bottom: none;
}

.edocman-lite-document-detail .info-label {
    font-weight: 600;
    color: #6c757d;
}

.edocman-lite-document-detail .info-value {
    font-weight: 700;
    color: #2c3e50;
}

.edocman-lite-document-detail .info-value.highlight {
    color: #667eea;
    font-size: 18px;
}

/* Sidebar */
.edocman-lite-document-detail .document-sidebar {
    position: sticky;
    top: 20px;
}

.edocman-lite-document-detail .sidebar-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.edocman-lite-document-detail .sidebar-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.edocman-lite-document-detail .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
}

.edocman-lite-document-detail .card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edocman-lite-document-detail .card-header .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.edocman-lite-document-detail .card-content {
    padding: 25px;
}

/* Document Actions */
.edocman-lite-document-detail .document-actions {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
    display: flex;
    gap: 10px;
}

.edocman-lite-document-detail .document-actions .button {
    padding: 10px 20px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.edocman-lite-document-detail .document-actions .button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.edocman-lite-document-detail .document-actions .download-button,
.edocman-lite-document-detail .document-actions .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.edocman-lite-document-detail .document-actions .download-button:hover,
.edocman-lite-document-detail .document-actions .button-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.edocman-lite-document-detail .document-actions .view-button {
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
}

.edocman-lite-document-detail .document-actions .view-button:hover {
    background: #f8f9fa;
}

.edocman-lite-document-detail .document-file-info {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9fa;
    border-radius: 5px;
}

.edocman-lite-document-detail .document-file-info .dashicons {
    vertical-align: middle;
    margin-right: 5px;
    color: #667eea;
}

.edocman-lite-document-detail .document-back-link {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.edocman-lite-document-detail .document-back-link .button {
    padding: 10px 20px;
    text-decoration: none;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.3s ease;
}

.edocman-lite-document-detail .document-back-link .button:hover {
    background: #e9e9e9;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .edocman-lite-categories .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .edocman-lite-documents .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .edocman-lite-document-detail .document-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .edocman-lite-document-detail .document-sidebar {
        position: static;
    }
}

@media screen and (max-width: 768px) {
    .edocman-lite-categories {
        padding: 15px;
    }
    
    .edocman-lite-categories .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .edocman-lite-categories .category-image,
    .edocman-lite-categories .category-no-image {
        height: 180px;
    }
    
    .edocman-lite-categories .category-content {
        padding: 20px;
    }
    
    .edocman-lite-categories .category-title {
        font-size: 18px;
    }
    
    .edocman-lite-documents {
        padding: 15px;
    }
    
    .edocman-lite-documents .category-info {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .edocman-lite-documents .category-featured-image {
        align-self: center;
        margin-bottom: 20px;
    }
    
    .edocman-lite-documents .category-title {
        font-size: 24px;
    }
    
    .edocman-lite-documents .documents-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .edocman-lite-documents .document-thumbnail {
        height: 180px;
    }
    
    .edocman-lite-documents .document-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .edocman-lite-documents .download-btn,
    .edocman-lite-documents .view-details-btn {
        width: 100%;
        justify-content: center;
    }
    
    .edocman-lite-documents .document-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .edocman-lite-document-detail {
        padding: 15px;
    }
    
    .edocman-lite-document-detail .document-header {
        padding: 30px 20px;
    }
    
    .edocman-lite-document-detail .document-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .edocman-lite-document-detail .document-title-section {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .edocman-lite-document-detail .document-title {
        font-size: 28px;
    }
    
    .edocman-lite-document-detail .document-actions {
        flex-direction: column;
    }
    
    .edocman-lite-document-detail .document-actions .button {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .edocman-lite-categories .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .edocman-lite-categories .category-image,
    .edocman-lite-categories .category-no-image {
        height: 160px;
    }
    
    .edocman-lite-categories .category-content {
        padding: 15px;
    }
    
    .edocman-lite-categories .category-title {
        font-size: 16px;
    }
    
    .edocman-lite-categories .category-description {
        font-size: 14px;
    }
    
    .edocman-lite-categories .view-category-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .edocman-lite-categories .category-meta {
        gap: 10px;
    }
    
    .edocman-lite-categories .category-meta span {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .edocman-lite-documents .category-breadcrumb,
    .edocman-lite-documents .category-info {
        padding: 15px;
    }
    
    .edocman-lite-documents .category-title {
        font-size: 20px;
    }
    
    .edocman-lite-documents .documents-header h2 {
        font-size: 20px;
    }
    
    .edocman-lite-documents .document-thumbnail {
        height: 160px;
    }
    
    .edocman-lite-documents .document-content,
    .edocman-lite-documents .document-info {
        padding: 15px;
    }
    
    .edocman-lite-document-detail .document-header {
        padding: 25px 15px;
    }
    
    .edocman-lite-document-detail .document-title {
        font-size: 24px;
    }
    
    .edocman-lite-document-detail .document-subtitle {
        font-size: 16px;
    }
    
    .edocman-lite-document-detail .download-btn.primary {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .edocman-breadcrumb {
        font-size: 13px;
        padding: 12px 15px;
    }
}

/* Loading Animation */
.edocman-lite-categories .category-item.loading,
.edocman-lite-documents .document-item.loading {
    opacity: 0.7;
    pointer-events: none;
}

.edocman-lite-categories .category-item.loading::after,
.edocman-lite-documents .document-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.edocman-lite-categories .category-item:focus-within,
.edocman-lite-documents .document-item:focus-within {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

.edocman-lite-categories .view-category-btn:focus,
.edocman-lite-documents .download-btn:focus,
.edocman-lite-documents .view-details-btn:focus,
.edocman-lite-document-detail .document-actions .button:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .edocman-lite-categories .category-item,
    .edocman-lite-documents .document-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .edocman-lite-categories .view-category-btn,
    .edocman-lite-documents .document-actions,
    .edocman-lite-document-detail .document-actions {
        display: none;
    }
}
