/* ===========================================
   Documents Page Styles
   =========================================== */

/* Content Section */
.docs-content {
    padding: 4rem 0;
}

/* Search Section */
.docs-search-section {
    margin-bottom: 2rem;
}

.docs-search-wrapper {
    position: relative;
    max-width: 500px;
}

.docs-search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.docs-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.docs-search-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* Tabs */
.docs-tabs {
    margin-bottom: 2rem;
}

.docs-tabs-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: #f8f9fa;
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.docs-tab-btn {
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.docs-tab-btn:hover {
    color: #212529;
    background: rgba(255, 255, 255, 0.5);
}

.docs-tab-btn.active {
    background: #fff;
    color: #212529;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Tab Content */
.docs-tab-content {
    display: none;
}

.docs-tab-content.active {
    display: block;
}

.docs-tab-header {
    margin-bottom: 1.5rem;
}

.docs-tab-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.docs-tab-description {
    color: #6c757d;
    margin: 0;
}


/* Documents List */
.docs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Document Card */
.doc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.doc-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.doc-card-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.doc-icon {
    flex-shrink: 0;
    color: #0d6efd;
}

.doc-icon i {
    font-size: 1.25rem;
}

.doc-info {
    flex: 1;
}

.doc-number {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 0.25rem;
}

.doc-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.doc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.doc-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.doc-date i {
    font-size: 0.875rem;
}

.doc-category {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.doc-size {
    font-size: 0.75rem;
}

/* Download Button */
.doc-download-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e9ecef;
    background: #fff;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #212529;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doc-download-btn:hover {
    border-color: #0d6efd;
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.05);
}

.doc-download-btn i {
    font-size: 1rem;
}


/* Info Card */
.docs-info-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.docs-info-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
}

.docs-info-title i {
    color: #0d6efd;
}

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

.docs-info-list li {
    font-size: 0.9rem;
    color: #6c757d;
    padding: 0.5rem 0;
    padding-left: 1rem;
    position: relative;
}

.docs-info-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #6c757d;
}

.docs-info-list a {
    color: #0d6efd;
    text-decoration: none;
}

.docs-info-list a:hover {
    text-decoration: underline;
}

/* ===========================================
   Responsive Styles
   =========================================== */

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

@media (max-width: 768px) {
    .docs-content {
        padding: 2rem 0;
    }

    .doc-card {
        flex-direction: column;
        align-items: stretch;
    }

    .doc-download-btn {
        justify-content: center;
        margin-top: 1rem;
    }

    .doc-meta {
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .docs-tabs-nav {
        grid-template-columns: 1fr;
    }

    .doc-card {
        padding: 1rem;
    }

    .doc-card-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .doc-title {
        font-size: 0.95rem;
    }

    .doc-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
