/* ======= File Detail Timeline Table ======= */
.file-detail-table {
    border-left: 3px solid #a37200;
    margin-bottom: 25px;
    padding-left: 15px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}
.file-detail-heading{
    text-align: center;
    color: #ffb300;
    word-break: break-word;
    word-wrap: break-word;
}
.related-heading{
    text-align: center;
    color: #28c900;
    font-size: 18px;
    margin-bottom: 30px;
}
.file-detail-table tr {
    position: relative;
    margin-bottom: 18px;
    display: block;
}
.file-detail-table th {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffe97f;
    opacity: 0.8;
    margin-bottom: 4px;
    text-align: left;
}
.file-detail-table td {
    display: block;
    text-align: center;
    font-size: 1.05rem;
    color: #fffdd0;
    padding: 8px 12px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 6px;
    box-shadow: inset 0 0 6px rgba(255, 215, 0, 0.2);
}
.file-detail-table tr::before {
    content: "";
    position: absolute;
    left: -21px;
    top: 12px;
    width: 12px;
    height: 12px;
    background: #a37200;
    border-radius: 50%;
    
}

/* ======= Description Section ======= */
.scrollable-desc {
    background: linear-gradient(145deg, rgba(255,215,0,0.05), rgba(255,215,0,0.02));
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.1);
    color: #fffdd0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ======= Report Form Glass Style ======= */
.file-report-form {
    background: #262626;
    border: 1px solid rgb(119 100 0 / 40%);
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.file-report-form h4 {
    color: #949494;
    margin-bottom: 12px;
}

.file-report-form textarea {
    width: 100%;
    min-height: 100px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
    padding-top: 10px;
    color: #ffd700;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.file-report-form textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.file-report-form button {
    margin-top: 12px;
    background: #c96600;
    border: none;
    color: #bbb;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.file-report-form button:hover {
    background: #ffea4d;
    transform: translateY(-2px);
}



/* ======= Related Files Tag Style ======= */
.related-files ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.related-files li {
    display: inline-block;
}
.related-files a {
    padding: 6px 12px;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 20px;
    text-decoration: none;
    color: #ffd700;
    font-size: 0.85rem;
    transition: 0.3s;
    word-break: break-word;
word-wrap: break-word;
}


.file-detail-container {
    background: rgba(30, 30, 30, 0.85);
    color: #ffe97f;
    padding: 10px;
    font-family: 'Poppins', sans-serif;
}
.button-download {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 40px;
    border: 2px solid #027500;
    border-radius: 40px;
    background: #027500;
    color: #ddd;
    font-weight: bold;
    text-decoration: none !important;
    transition: 0.3s;
    box-shadow: 0 0 8px rgb(0 163 50 / 30%);
}
.button-download:hover {
    background: #b57f00;
    color: #ffffff;;
    transform: translateY(-2px);
}

@media (max-width: 650px) {

    .file-report-form h4 {
        font-size: 16px;
    }
    .file-report-form button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}
.action-buttons{
    text-align: center;
}
.related-files {
    background: #262626;
    border: 1px solid rgb(119 100 0 / 40%);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}


.related-files ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-files ul li {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    padding-bottom: 8px;
}

.related-files ul li:last-child {
    border-bottom: none;
}

.related-files ul li a {
    display: block;
    text-decoration: none;
    font-size: 16px;
    color: #bcbcbc;;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.related-files ul li a:hover {
    background: #027500;
   color: #ddd;
    transform: translateX(5px);
}

/* ✅ Mobile Adjustments */
@media (max-width: 600px) {
    .related-files {
        padding: 15px;
    }

    .related-files ul li a {
        font-size: 15px;
        padding: 10px;
    }
    .description-section{
        margin: 10px !important;
    }
}

.related-files ul {
    display: grid;
    grid-template-columns: 1fr; /* Mobile default: 1 column */
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}
@media (min-width: 768px) {
    .related-files ul {
        grid-template-columns: repeat(2, 1fr); /* Desktop: 2 columns */
    }
}


.description-section {
    padding: 15px 0;
    margin: 20px;
    border-top: 2px solid rgba(255, 215, 0, 0.4);
    border-bottom: 2px solid rgba(255, 215, 0, 0.4);
}

.description-section h3 {
    font-size: 20px;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 12px;
    border-left: 4px solid #ffd700;
    padding-left: 10px;
}

.scrollable-desc {
    background: transparent;
    color: #e6e6e6;
    padding: 10px 0;
    max-height: 220px;
    overflow-y: auto;
    line-height: 1.7;
    font-size: 15px;
    border-left: 2px dashed rgba(255, 215, 0, 0.3);
    padding-left: 12px;
}

.scrollable-desc::-webkit-scrollbar {
    width: 6px;
}
.scrollable-desc::-webkit-scrollbar-thumb {
    background-color: #ffd700;
    border-radius: 3px;
}
.scrollable-desc::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
