﻿/* Documentation Styles - CohÃ©rent avec le design MILEX */

/* Variables de couleurs MILEX - AlignÃ©es avec les autres pages */
:root {
    --primary-color: #007bff;  /* Bleu principal cohÃ©rent */
    --secondary-color: #28a745; /* Vert cohÃ©rent */
    --accent-color: #e74c3c;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-gray: #f8f9fa;
    --medium-gray: #dee2e6;
    --dark-gray: #495057;
    --white: #ffffff;
    --black: #212529;
    --gradient-primary: linear-gradient(135deg, #007bff, #28a745); /* COHÃ‰RENT */
    --gradient-secondary: linear-gradient(135deg, #28a745, #20c997);
    --gradient-accent: linear-gradient(135deg, #e74c3c, #ffc107);
}

.documentation-container {
    background: var(--light-gray);
    min-height: 100vh;
}

.doc-hero .container,
.doc-search .container,
.quick-nav .container,
.wp-header .container,
.wp-content .container {
    width: min(96vw, 1760px);
    max-width: 1760px;
}

.doc-hero {
    background: linear-gradient(135deg, #007bff, #28a745); /* COHÃ‰RENT */
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.doc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagons" width="20" height="20" patternUnits="userSpaceOnUse"><polygon points="10,2 18,7 18,13 10,18 2,13 2,7" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagons)"/></svg>');
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: var(--white);
}

.lead {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: var(--white);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 140px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    color: var(--white);
}

/* Search Section */
.doc-search {
    background: var(--white);
    padding: 4rem 0;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--medium-gray);
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1), 0 4px 20px rgba(0, 123, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    font-size: 1.2rem;
}

.filter-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 0.5rem 1.5rem;
    background: var(--light-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.filter-tag:hover,
.filter-tag.active {
    background: linear-gradient(135deg, #007bff, #28a745); /* COHÃ‰RENT */
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Quick Navigation */
.quick-nav {
    background: var(--white);
    padding: 80px 0;
}

.quick-nav h2 {
    color: var(--dark-gray);
    font-weight: 700;
    margin-bottom: 3rem;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.35rem;
    margin-top: 3rem;
}

.nav-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.35rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #007bff, #28a745); /* COHÃ‰RENT */
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    color: inherit;
    text-decoration: none;
}

.nav-card:hover::before {
    transform: scaleX(1);
}

.nav-card i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-card:hover i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.nav-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
}

.nav-card p {
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.45;
    font-size: 0.86rem;
}

/* Work Packages Sections */
.work-package {
    background: var(--white);
    margin: 4rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.work-package.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.wp-header {
    background: linear-gradient(135deg, #007bff, #28a745); /* COHÃ‰RENT */
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wp-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
}

.wp-header .container {
    position: relative;
    z-index: 2;
}

.wp-number {
    font-size: 4rem;
    font-weight: 800;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: var(--white);
}

.wp-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    color: var(--white);
}

.wp-description {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--white);
}

.wp-content {
    padding: 4rem 0;
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.deliverable-category {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.deliverable-category::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1) 0%, transparent 50%);
    border-radius: 0 15px 0 100%;
}

.deliverable-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.1);
    border-left-color: var(--secondary-color);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.category-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    padding: 0.5rem;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.deliverable-category:hover .category-icon {
    background: rgba(40, 167, 69, 0.2);
    transform: scale(1.1);
    color: var(--secondary-color);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0;
}

.deliverable-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.deliverable-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.deliverable-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #007bff, #28a745); /* COHÃ‰RENT */
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.deliverable-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateX(5px);
}

.deliverable-item:hover::before {
    transform: scaleY(1);
}

.deliverable-info {
    flex-grow: 1;
}

.deliverable-name {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.deliverable-meta {
    font-size: 0.875rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.deliverable-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--light-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
    color: var(--dark-gray);
}

.deliverable-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-left: 1rem;
}

.btn-action {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-action:hover::before {
    left: 100%;
}

.btn-download {
    background: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-download:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: var(--white);
    text-decoration: none;
}

.btn-preview {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-preview:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    color: var(--white);
    text-decoration: none;
}

.btn-share {
    background: var(--dark-gray);
    color: var(--white);
    border: 2px solid var(--dark-gray);
}

.btn-share:hover {
    background: #343a40;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 80, 87, 0.3);
    color: var(--white);
}

/* Statistics Section */
.doc-stats {
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%);
    padding: 4rem 0;
    position: relative;
}

.doc-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(0,123,255,0.1)"/><circle cx="80" cy="20" r="1" fill="rgba(0,123,255,0.1)"/><circle cx="20" cy="80" r="1" fill="rgba(0,123,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(0,123,255,0.1)"/></svg>');
    opacity: 0.5;
}

.doc-stats h2 {
    color: var(--dark-gray);
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #007bff, #28a745); /* COHÃ‰RENT */
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-card .label {
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 1rem;
}

/* Progress Bars */
.progress-container {
    margin: 3rem 0;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.progress-container h3 {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.progress-item {
    margin-bottom: 1.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.progress-bar {
    height: 10px;
    background: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #007bff, #28a745); /* COHÃ‰RENT */
    border-radius: 10px;
    transition: width 1.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #007bff, #28a745); /* COHÃ‰RENT */
    color: var(--white);
    border-radius: 15px 15px 0 0;
}

.modal-title {
    color: var(--white);
}

.btn-close {
    filter: invert(1);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.share-option-btn {
    padding: 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    color: var(--dark-gray);
}

.share-option-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.05);
    transform: translateY(-2px);
}

.share-option-btn i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Search Results */
.search-results-info {
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 25px;
    color: var(--primary-color);
    font-weight: 500;
    display: none;
}

/* Success States */
.btn-success {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: var(--white) !important;
}

.btn-success i {
    animation: pulse 0.5s ease;
}

/* Focus States */
.btn-action:focus {
    outline: 3px solid rgba(0, 123, 255, 0.3);
    outline-offset: 2px;
}

.search-input:focus {
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 1rem;
    }
    
    .wp-number {
        font-size: 3rem;
    }
    
    .wp-title {
        font-size: 2rem;
    }
    
    .deliverables-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-grid {
        grid-template-columns: 1fr;
    }
    
    .deliverable-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .deliverable-actions {
        margin-left: 0;
        justify-content: stretch;
    }
    
    .btn-action {
        flex: 1;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-tags {
        gap: 0.5rem;
    }
    
    .filter-tag {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .doc-hero {
        padding: 80px 0 60px;
    }
    
    .deliverable-category {
        padding: 1.5rem;
    }
    
    .wp-content {
        padding: 2rem 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s infinite linear;
    z-index: 1000;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Print Styles */
@media print {
    .doc-hero,
    .doc-search,
    .deliverable-actions,
    .progress-container {
        display: none;
    }
    
    .work-package {
        page-break-inside: avoid;
        margin: 1rem 0;
        box-shadow: none;
        border: 1px solid var(--medium-gray);
    }
    
    .wp-header {
        background: var(--light-gray) !important;
        color: var(--dark-gray) !important;
        padding: 1rem 0;
    }
}

.search-summary {
    color: var(--dark-gray);
    font-size: 1rem;
}

.nav-card-count {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

@media (min-width: 1380px) {
    .nav-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.95rem;
    }

    .nav-card {
        padding: 1.1rem;
    }

    .nav-card-count {
        margin-top: 0.8rem;
        font-size: 0.82rem;
    }
}

.deliverable-name a {
    color: inherit;
    text-decoration: none;
}

.deliverable-name a:hover {
    color: var(--primary-color);
}

.deliverable-summary {
    margin: 0.75rem 0 0;
    color: var(--dark-gray);
    line-height: 1.5;
}

.empty-work-package {
    background: var(--white);
    border-radius: 18px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.08);
}

.empty-work-package i {
    font-size: 2.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.empty-work-package h3,
.empty-work-package h2 {
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
}

.doc-hero-detail {
    padding-bottom: 60px;
}

.doc-breadcrumb {
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.doc-breadcrumb a {
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
}

.doc-breadcrumb span {
    margin: 0 0.4rem;
}

.doc-detail-section {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 2rem;
}

.detail-main,
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.detail-card-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--light-gray);
}

.detail-card-header h2,
.detail-card-header h1 {
    margin: 0;
    color: var(--dark-gray);
}

.detail-card-body {
    padding: 1.75rem;
}

.document-preview-frame {
    width: 100%;
    min-height: 720px;
    border: 0;
    border-radius: 12px;
    background: #fafafa;
}

.detail-file-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-file-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border: 1px solid var(--light-gray);
    border-radius: 14px;
}

.detail-file-name {
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.detail-meta-list,
.detail-people-list,
.related-documents {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.detail-people-list li,
.related-documents li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 123, 255, 0.08);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.code-preview {
    margin: 0;
    padding: 1.25rem;
    border-radius: 14px;
    background: #0f172a;
    color: #e2e8f0;
    overflow: auto;
}

@media (max-width: 992px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .document-preview-frame {
        min-height: 560px;
    }
}

@media (max-width: 768px) {
    .detail-file-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-file-item .deliverable-actions {
        width: 100%;
    }

    .document-preview-frame {
        min-height: 420px;
    }
}


.icon-only-action {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.icon-only-action i {
    margin: 0;
}
