/* =========================
INDEX PAGE - FILTER & SEARCH Students.css
========================= */
.filter-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.filter-card label {
    font-weight: 500;
}

.filter-form {
    min-width: 80px;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    text-align: center;
}

.status-badge.bg-info {
    background: #17a2b8;
    color: #fff;
}
.status-badge.bg-primary {
    background: #007bff;
    color: #fff;
}
.status-badge.bg-warning {
    background: #ffc107;
    color: #333;
}
.status-badge.bg-success {
    background: #28a745;
    color: #fff;
}
.status-badge.bg-danger {
    background: #dc3545;
    color: #fff;
}
.status-badge.bg-dark {
    background: #343a40;
    color: #fff;
}
.status-badge.bg-light {
    background: #f8f9fa;
    color: #333;
}

/* Action buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-edit {
    background: #ffc107;
    color: #333;
}
.btn-doc {
    background: #17a2b8;
    color: #fff;
}
.btn-sm {
    font-size: 0.85rem;
    padding: 5px 10px;
}

.empty-row {
    text-align: center;
    color: #777;
    padding: 20px;
}

/* Pagination */
.pagination-wrap {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

/* =========================
FORM PAGE (CREATE / EDIT)
========================= */
.create-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.student-form .mb-3 label {
    font-weight: 500;
    margin-bottom: 6px;
}
.student-form .form-control,
.student-form .form-select {
    border-radius: 8px;
    padding: 10px;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

/* Buttons */
.btn-main {
    background: #2a9d8f;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
}

/* =========================
STUDENT SHOW / PROFILE
========================= */
.custom-tabs .nav-link {
    font-weight: 500;
    padding: 10px 20px;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    color: #495057;
}

.custom-tabs .nav-link:hover {
    color: #0d6efd;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.custom-tabs .nav-link.active {
    color: #0d6efd;
    background-color: #fff;
    border-bottom: 3px solid #0d6efd;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

.profile-card {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.profile-left {
    flex: 0 0 150px;
    text-align: center;
}
.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}
.profile-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

.profile-right h3 {
    margin-bottom: 10px;
}

.card {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}
.card-avatar {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid #fff;
}
.card-fullname {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 10px;
}
.card-jobtitle {
    text-align: center;
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}
.card-section {
    padding: 15px;
}
.card-social {
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* =========================
DOCUMENT / UPLOAD SECTION
========================= */
.document-card {
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.document-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.doc-preview {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}
.doc-placeholder {
    width: 100%;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f2f2f2;
    border-radius: 6px;
    color: #6c757d;
    font-size: 18px;
    margin-bottom: 10px;
}

.upload-section {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

.upload-box {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #555;
    font-size: 16px;
    cursor: pointer;
}
.upload-box:hover {
    background-color: #e9f0ff;
    border-color: #0056b3;
}

#file-preview {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#file-preview img {
    max-width: 180px;
    max-height: 180px;
    border: 1px solid #ddd;
    border-radius: 6px;
    object-fit: cover;
    transition: transform 0.2s ease;
}
#file-preview img:hover {
    transform: scale(1.05);
}

.uploaded-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.uploaded-file {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.uploaded-file:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.file-actions {
    display: flex;
    justify-content: center;
    gap: 6px;
}
.file-actions a.btn-view {
    background: #17a2b8;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
}
.file-actions a.btn-download {
    background: #28a745;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
}
.file-actions button.btn-delete {
    background: #dc3545;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
}

/* =========================
RESPONSIVE
========================= */
@media (max-width: 768px) {
    .filter-card .row > div {
        margin-bottom: 10px;
    }
    .uploaded-files-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-left,
    .profile-right {
        width: 100%;
    }
    .card-avatar {
        height: 200px;
    }
    .card-fullname {
        font-size: 1.2rem;
    }
    .card-jobtitle {
        font-size: 0.9rem;
    }
}
