﻿/* =====================================================
   Admin Received Files
===================================================== */

.admin-received-files-section {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}


/* =====================================================
   Header
===================================================== */

.admin-received-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0f4;
}


.admin-received-title {
    display: flex;
    align-items: center;
    gap: 14px;
}


.admin-received-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eaf8f0;
    color: #198754;
    font-size: 23px;
    flex-shrink: 0;
}


.admin-received-title h3 {
    margin: 0 0 5px;
    font-size: 21px;
    font-weight: 700;
    color: #1f2937;
}


.admin-received-title p {
    margin: 0;
    color: #7b8491;
    font-size: 14px;
}


/* =====================================================
   Count
===================================================== */

.admin-received-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: #f1faf5;
    color: #198754;
    border: 1px solid #d8f0e2;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}


/* =====================================================
   Grid
===================================================== */

.admin-received-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}


/* =====================================================
   Card
===================================================== */

.admin-received-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e7ebf0;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}


    .admin-received-card:hover {
        transform: translateY(-3px);
        border-color: #cfe8d9;
        box-shadow: 0 12px 28px rgba(25, 135, 84, 0.10);
    }


/* =====================================================
   Card Top
===================================================== */

.admin-file-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}


.admin-file-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #f0faf4;
    color: #198754;
    font-size: 22px;
}


.admin-file-badge {
    padding: 5px 10px;
    border-radius: 50px;
    background: #f1faf5;
    color: #198754;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}


/* =====================================================
   Content
===================================================== */

.admin-file-content {
    flex: 1;
}


    .admin-file-content h4 {
        margin: 0 0 10px;
        color: #1f2937;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }


    .admin-file-content p {
        margin: 0 0 14px;
        color: #6b7280;
        font-size: 14px;
        line-height: 1.9;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }


/* =====================================================
   Meta
===================================================== */

.admin-file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 18px;
    color: #89919c;
    font-size: 12px;
}


    .admin-file-meta span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }


/* =====================================================
   Actions
===================================================== */

.admin-file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #edf0f4;
}


    .admin-file-actions form {
        margin: 0;
    }


.admin-file-download,
.admin-file-delete {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}


.admin-file-download {
    flex: 1;
    background: #198754;
    color: #ffffff;
    border: 1px solid #198754;
}


    .admin-file-download:hover {
        background: #157347;
        color: #ffffff;
        border-color: #157347;
    }


.admin-file-delete {
    background: #fff5f5;
    color: #dc3545;
    border: 1px solid #f3c6cb;
}


    .admin-file-delete:hover {
        background: #dc3545;
        color: #ffffff;
        border-color: #dc3545;
    }


/* =====================================================
   Empty
===================================================== */

.admin-received-empty {
    padding: 45px 20px;
    text-align: center;
    border: 1px dashed #d9dfe6;
    border-radius: 15px;
    background: #fafbfc;
}


.admin-empty-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #f0f2f5;
    color: #9aa3ad;
    font-size: 28px;
}


.admin-received-empty h4 {
    margin: 0 0 8px;
    color: #374151;
    font-size: 17px;
    font-weight: 700;
}


.admin-received-empty p {
    max-width: 500px;
    margin: 0 auto;
    color: #8a929d;
    font-size: 14px;
    line-height: 1.8;
}


/* =====================================================
   Responsive
===================================================== */

@media (max-width: 768px) {

    .admin-received-files-section {
        padding: 18px;
    }


    .admin-received-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .admin-received-count {
        align-self: flex-start;
    }


    .admin-received-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 480px) {

    .admin-received-title {
        align-items: flex-start;
    }


    .admin-received-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }


    .admin-received-title h3 {
        font-size: 18px;
    }


    .admin-file-actions {
        flex-direction: column;
        align-items: stretch;
    }


    .admin-file-download,
    .admin-file-delete {
        width: 100%;
    }
}
