/* ==========================================
   PHÁT TRIỂN BỀN VỮNG - EUDR (eudr.css)
   ========================================== */

.eudr-hero {
    position: relative;
    padding: 150px 0 90px;
    background: url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=1600&h=800&fit=crop') center/cover no-repeat;
    color: #fff;
}

.eudr-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.18) 50%, rgba(0, 0, 0, 0.38) 100%);
    transition: background 0.3s ease, opacity 0.3s ease;
}

.eudr-hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.eudr-hero-content .breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.85);
}

.eudr-hero-content .breadcrumb a {
    color: #a5d6a7;
    text-decoration: none;
}

.eudr-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.eudr-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
}

.eudr-hero-content p {
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

/* Metrics Bar */
.eudr-metrics-section {
    margin-top: -45px;
    position: relative;
    z-index: 5;
    padding-bottom: 20px;
}

.eudr-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.eudr-metric-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px 22px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 4px solid #1b5e20;
}

.metric-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #e8f5e9;
    color: #1b5e20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    flex-shrink: 0;
}

.eudr-metric-card strong {
    display: block;
    font-size: 22px;
    color: #1b5e20;
    font-weight: 700;
    margin-bottom: 3px;
}

.eudr-metric-card span {
    font-size: 13px;
    color: #555;
}

/* 3 Pillars */
.eudr-pillars-section {
    padding: 70px 0;
    background: #f8fbf8;
}

.eudr-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.eudr-pillar-card {
    background: #fff;
    border-radius: 16px;
    padding: 34px 28px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid #e3efe4;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.eudr-pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(27, 94, 32, 0.12);
}

.pillar-num {
    position: absolute;
    top: 22px;
    right: 26px;
    font-size: 38px;
    font-weight: 700;
    color: rgba(27, 94, 32, 0.08);
}

.pillar-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.eudr-pillar-card h3 {
    font-size: 20px;
    color: #1a2e1f;
    margin-bottom: 12px;
}

.eudr-pillar-card p {
    font-size: 14.5px;
    color: #526156;
    line-height: 1.65;
    margin-bottom: 18px;
}

.pillar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pillar-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.8px;
    color: #2c3e30;
    margin-bottom: 9px;
}

.pillar-list li i {
    color: #2e7d32;
}

/* Documents Repository */
.eudr-docs-section {
    padding: 75px 0 90px;
    background: #fff;
}

.eudr-docs-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.eudr-docs-sub {
    max-width: 720px;
    color: #555;
    font-size: 15px;
    margin-top: 8px;
}

.eudr-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    background: #f4f8f4;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid #e0ece1;
}

.eudr-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eudr-tab-btn {
    border: 1px solid #d0e2d2;
    background: #fff;
    color: #2c4430;
    padding: 9px 15px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
}

.eudr-tab-btn:hover {
    border-color: #1b5e20;
    color: #1b5e20;
}

.eudr-tab-btn.active {
    background: #1b5e20;
    border-color: #1b5e20;
    color: #fff;
}

.eudr-search-box {
    position: relative;
    min-width: 300px;
    flex: 1;
    max-width: 380px;
}

.eudr-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7c6e;
}

.eudr-search-box input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid #cbdrcd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.eudr-search-box input:focus {
    border-color: #1b5e20;
}

/* Document Cards Grid */
.eudr-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.eudr-doc-card {
    background: #fff;
    border: 1px solid #e2ece3;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    gap: 18px;
    transition: all 0.22s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.eudr-doc-card:hover {
    border-color: #2e7d32;
    box-shadow: 0 10px 26px rgba(27, 94, 32, 0.09);
}

.eudr-doc-icon {
    width: 56px;
    height: 64px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
    background: #ffebee;
    color: #c62828;
}

.eudr-doc-icon.docx {
    background: #e3f2fd;
    color: #1565c0;
}

.eudr-doc-icon.xlsx, .eudr-doc-icon.geojson {
    background: #e8f5e9;
    color: #1b5e20;
}

.eudr-doc-icon i {
    font-size: 22px;
    margin-bottom: 4px;
}

.eudr-doc-body {
    flex: 1;
}

.eudr-doc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.eudr-doc-cat {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: #e8f5e9;
    color: #1b5e20;
}

.eudr-doc-code {
    font-size: 12.5px;
    color: #666;
    font-weight: 500;
}

.eudr-doc-body h3 {
    font-size: 16.5px;
    color: #1b2e1e;
    line-height: 1.45;
    margin-bottom: 10px;
}

.eudr-doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: #666;
    margin-bottom: 14px;
}

.eudr-doc-actions {
    display: flex;
    gap: 10px;
}

.btn-eudr-view, .btn-eudr-dl {
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.btn-eudr-view {
    background: #f1f7f2;
    color: #1b5e20;
    border-color: #cfe3d1;
}

.btn-eudr-view:hover {
    background: #e0f0e2;
}

.btn-eudr-dl {
    background: #1b5e20;
    color: #fff;
}

.btn-eudr-dl:hover {
    background: #144718;
}

/* Modal */
.eudr-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.eudr-modal.open {
    display: flex;
}

.eudr-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.eudr-modal-dialog {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 16px;
    max-width: 720px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.eudr-modal-header {
    padding: 22px 26px;
    background: #1b5e20;
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.eudr-modal-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 6px;
}

.eudr-modal-header h3 {
    font-size: 19px;
    line-height: 1.4;
}

.eudr-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.eudr-modal-body {
    padding: 24px 26px;
    overflow-y: auto;
}

.eudr-modal-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: #f5f9f5;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 18px;
}

.eudr-modal-content p {
    font-size: 14.5px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 12px;
}

.eudr-modal-footer {
    padding: 16px 26px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.eudr-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.eudr-empty-state i {
    font-size: 44px;
    color: #9e9e9e;
    margin-bottom: 12px;
}

/* Toast */
.eudr-toast {
    position: fixed;
    bottom: 26px;
    right: 26px;
    background: #1b5e20;
    color: #fff;
    padding: 13px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
}

.eudr-toast.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 992px) {
    .eudr-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .eudr-pillars-grid {
        grid-template-columns: 1fr;
    }
    .eudr-docs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .eudr-metrics-grid {
        grid-template-columns: 1fr;
    }
    .eudr-hero-content h1 {
        font-size: 30px;
    }
    .eudr-modal-meta {
        grid-template-columns: 1fr;
    }
}
