﻿.documents-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.page-header {
    background: linear-gradient(135deg, #282572, #1e1d5f);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

    .page-header h1 {
        margin: 0;
        font-size: 2.5rem;
        font-weight: 600;
    }

    .page-header p {
        margin: 0.5rem 0 0 0;
        opacity: 0.9;
        font-size: 1.1rem;
    }

.document-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.section-header {
    background: #282572;
    color: white;
    padding: 1.5rem 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    width: 24px;
    height: 24px;
    background: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.documents-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.document-item {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

    .document-item:hover {
        background: linear-gradient(135deg, #f8f9ff, #fff);
        padding-left: 2.5rem;
        border-left: 4px solid #ff6b35;
        text-decoration: none;
        color: inherit;
    }

    .document-item:last-child {
        border-bottom: none;
    }

.document-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #282572, #1e1d5f);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.document-text {
    flex: 1;
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.child-documents {
    background: #f8f9ff;
    padding: 0;
    margin: 0;
    list-style: none;
}

.child-document-item {
    padding: 1rem 2rem 1rem 4rem;
    border-bottom: 1px solid #e8e9f3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

    .child-document-item:hover {
        background: white;
        padding-left: 4.5rem;
        border-left: 3px solid #ff6b35;
        text-decoration: none;
        color: inherit;
    }

    .child-document-item:last-child {
        border-bottom: none;
    }

.child-icon {
    width: 8px;
    height: 8px;
    background: #ff6b35;
    border-radius: 50%;
    flex-shrink: 0;
}

.child-text {
    font-size: 1rem;
    color: #555;
    font-weight: 400;
    flex: 1;
}

.file-items {
    background: #fff;
    padding: 0;
    margin: 0;
    list-style: none;
    border-top: 1px solid #e8e9f3;
}

.file-item {
    padding: 0.75rem 2rem 0.75rem 5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    background: #fafbff;
}

    .file-item:hover {
        background: #fff;
        padding-left: 5.5rem;
        border-left: 2px solid #ff6b35;
        text-decoration: none;
        color: inherit;
    }

    .file-item:last-child {
        border-bottom: none;
    }

.file-icon {
    width: 6px;
    height: 6px;
    background: #282572;
    border-radius: 50%;
    flex-shrink: 0;
}

.file-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    flex: 1;
}

.download-icon {
    margin-left: auto;
    color: #ff6b35;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.document-item:hover .download-icon,
.child-document-item:hover .download-icon,
.file-item:hover .download-icon {
    opacity: 1;
}

.no-download {
    opacity: 0.6;
    cursor: default;
}

    .no-download:hover {
        background: transparent !important;
        padding-left: 2rem !important;
        border-left: none !important;
    }

.subcategory-header {
    background: #e8e9f3;
    color: #282572;
    padding: 0.75rem 2rem 0.75rem 4rem;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid #d0d1e0;
}

@media (max-width: 768px) {
    .documents-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .page-header {
        padding: 1.5rem;
    }

        .page-header h1 {
            font-size: 2rem;
        }

    .document-item {
        padding: 1rem 1.5rem;
    }

        .document-item:hover {
            padding-left: 2rem;
        }

    .child-document-item {
        padding: 0.75rem 1.5rem 0.75rem 3rem;
    }

        .child-document-item:hover {
            padding-left: 3.5rem;
        }

    .file-item {
        padding: 0.5rem 1.5rem 0.5rem 4rem;
    }

        .file-item:hover {
            padding-left: 4.5rem;
        }

    .document-text {
        font-size: 1rem;
    }
}
