﻿.subtitle {
    color: var(--gray);
    font-size: 0.95rem;
}

.search-bar {
    display: flex;
    margin: 20px 0;
    max-width: 100%;
}

    .search-bar input {
        flex: 1;
        padding: 10px 15px;
        border: 1px solid var(--gray-light);
        border-radius: 6px;
        font-size: 0.9rem;
        outline: none;
        transition: var(--transition);
    }

        .search-bar input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
        }

.document-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.document-header {
    display: grid;
    grid-template-columns: 40px 2fr 1fr 100px;
    padding: 12px 15px;
    background-color: var(--light);
    font-weight: 600;
    color: var(--gray);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--gray-light);
}

.document-item {
    display: grid;
    grid-template-columns: 40px 2fr 1fr 100px;
    padding: 15px;
    align-items: center;
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
}

    .document-item:last-child {
        border-bottom: none;
    }

    .document-item:hover {
        background-color: rgba(67, 97, 238, 0.03);
    }

.document-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.document-info {
    display: flex;
    flex-direction: column;
}

.document-title {
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--dark);
}

.document-description {
    font-size: 0.85rem;
    color: var(--gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.document-meta {
    font-size: 0.85rem;
    color: var(--gray);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

    .download-btn:hover {
        background-color: var(--secondary);
    }

    .download-btn i {
        margin-right: 5px;
        font-size: 0.7rem;
    }

.badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    background-color: var(--gray-light);
    color: var(--gray);
}

@media (max-width: 768px) {
    .document-header {
        display: none;
    }

    .document-item {
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
        padding: 12px;
    }

    .document-meta {
        grid-column: 2;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .download-btn {
        margin-left: auto;
    }
}

.container3 {
    max-width: 1000px;
    margin: 0 auto;
}

:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --transition: all 0.2s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



.gradient-line {
    width: 10%;
    height: 3px;
    background: linear-gradient(90deg, #3964ff, #65daff);
    border-radius: 10px;
    margin: 5px 0;
}

/* Wrapper styling */
#resourcesTable_wrapper {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Responsive table wrapper */
.table-responsive {
    overflow-x: auto;
}

/* Table styling */
#resourcesTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    min-width: 600px; /* ensures scroll on very small screens */
}

    /* Table headers */
    #resourcesTable thead th {
        background-color: white;
        color: #424242;
        font-weight: 600;
        padding: 12px 10px;
        text-align: left;
        border-bottom: 2px solid white;
        border-top: 2px solid #c5c5c5;
    }

        #resourcesTable thead th:first-child {
            border-top-left-radius: 12px;
        }

        #resourcesTable thead th:last-child {
            border-top-right-radius: 12px;
        }

    /* Table body rows */
    #resourcesTable tbody tr {
        background-color: white;
        transition: all 0.3s ease;
    }

        #resourcesTable tbody tr:nth-child(even) {
            background-color: #f9fbff;
        }

        #resourcesTable tbody tr:hover {
            background-color: white;
            cursor: pointer;
        }

    #resourcesTable tbody td {
        padding: 10px 10px;
        vertical-align: middle;
    }

    /* File type badge */
    #resourcesTable .badge {
        background-color: #d0e7ff;
        color: #003366;
        padding: 3px 8px;
        border-radius: 10px;
        font-size: 0.85em;
        font-weight: 500;
    }

    /* Download button */
    #resourcesTable .download-btn {
        background-color: transparent;
        color: #007BFF;
        border: 1px solid #007BFF;
        padding: 5px 12px;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        transition: all 0.3s ease;
    }

        #resourcesTable .download-btn:hover {
            background-color: #007BFF;
            color: #fff;
        }

            #resourcesTable .download-btn:hover i {
                color: #fff;
            }

/* DataTables search input styling */
.dataTables_filter {
    margin-bottom: 10px;
}

    .dataTables_filter input {
        background-color: #ffffff !important;
        border: 1px solid #b0d4ff;
        padding: 6px 10px;
        border-radius: 6px;
        color: #003366;
        width: 180px;
        transition: all 0.3s ease;
    }

        .dataTables_filter input:focus {
            outline: none;
            border-color: #007BFF;
            box-shadow: 0 0 5px rgba(0,123,255,0.3);
        }

/* Mobile responsiveness */
@media (max-width: 768px) {
    #resourcesTable_wrapper {
        padding: 10px;
    }

    #resourcesTable thead th,
    #resourcesTable tbody td {
        padding: 8px 6px;
        font-size: 0.9rem;
    }

    .dataTables_filter input {
        width: 140px;
    }
}