/* --- General & Admin --- */
.nps-admin-wrap .form-table th {
    width: 150px; /* Adjust label width */
}
.nps-admin-wrap .wp-list-table .column-photo {
    width: 70px;
}
.nps-admin-wrap .wp-list-table .column-serial_number {
    width: 5%;
}
.nps-admin-wrap .wp-list-table .column-actions {
    width: 15%;
}
.nps-admin-wrap .wp-list-table img {
    display: block; /* Prevents extra space below image */
}
.nps-admin-wrap #nps_current_image_preview {
    max-width: 100px;
    height: auto;
    border: 1px solid #ccc;
    padding: 3px;
    background: #f7f7f7;
}

/* --- Front-End Slider --- */
.nps-slider-wrapper {
    overflow: hidden; /* Crucial for slider effect */
    position: relative; /* Needed for absolute positioned controls if added */
    max-width: 90%;   /* Adjust as needed */
    margin: 20px auto;
    padding: 10px 0;
    /* border: 1px solid #eee; */      /* Optional: Uncomment if you want a border */
    /* background-color: #f9f9f9; */ /* Removed background color */
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */ /* Optional: Uncomment for shadow */
}

/* Other styles remain the same... */

.nps-slider {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth transition for JS sliding */
    /* No animation property here */
}

.nps-slide {
    min-width: 33.33%; /* Show 3 slides at a time */
    flex: 0 0 33.33%;  /* Prevent shrinking/growing */
    box-sizing: border-box;
    padding: 0 15px;   /* Space between slides */
    text-align: center;
}

.nps-slide img {
    width: 100%; /* Make image responsive within slide container */
    max-width: 200px; /* Max size */
    height: 200px;   /* Fixed height */
    object-fit: cover; /* Crop image nicely */
    border-radius: 20px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    display: block;
    margin: 0 auto 10px auto; /* Center image */
    transition: transform 0.3s ease;
}
.nps-slide img:hover {
    transform: scale(1.05);
}

.nps-student-caption {
    text-align: center;
    margin-top: 5px;
    font-family: sans-serif;
    font-size: 0.9em;
    color: #333;
}
.nps-student-caption strong {
    display: block;
    font-size: 1.1em;
}
.nps-student-caption small {
    color: #777;
}

/* --- Front-End Popup --- */
.nps-student-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 10000; /* High z-index */
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto; /* Allow scrolling if content overflows */
    backdrop-filter: blur(4px); /* Optional: Background blur */
}

.nps-student-popup-content {
    background: #fff;
    padding: 25px 30px;
    width: 95%;
    max-width: 800px; /* Adjust max width as needed */
    border-radius: 30px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: nps-popup-appear 0.4s ease-out;
    margin: 20px auto; /* Center vertically if screen is tall */
}

.nps-close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
}
.nps-close-popup:hover {
    color: #333;
}

@keyframes nps-popup-appear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Popup Profile Styling (based on your JS HTML structure) */
#nps-student-detail-content .student-profile .card {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}
#nps-student-detail-content .student-profile .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px;
}
#nps-student-detail-content .student-profile .profile_img {
    max-width: 100%;
    height: auto;
    border-radius: 80px;
    margin-bottom: 15px;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
#nps-student-detail-content .student-profile h3 {
    margin-bottom: 5px;
    font-size: 1.5em;
    color: #333;
}
#nps-student-detail-content .student-profile .card-body p {
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #555;
}
#nps-student-detail-content .student-profile .card-body strong {
    color: #333;
    min-width: 90px;
    display: inline-block;
}
#nps-student-detail-content .student-profile .table {
    margin-bottom: 0;
    font-size: 0.95em;
}
#nps-student-detail-content .student-profile .table th,
#nps-student-detail-content .student-profile .table td {
    padding: 8px 12px;
    vertical-align: middle;
    border-color: #e9ecef; /* Lighter border */
}
#nps-student-detail-content .student-profile .table th {
    background-color: #f8f9fa; /* Light background for headers */
    color: #495057;
    font-weight: 600;
}
#nps-student-detail-content .student-profile .mb-0 i {
    margin-right: 8px;
    color: #007bff; /* Icon color */
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .nps-slide {
        min-width: 50%; /* Show 2 slides on medium screens */
        flex-basis: 50%;
    }
    #nps-student-detail-content .row > div {
        margin-bottom: 20px; /* Add space between columns on smaller screens */
    }
}

@media (max-width: 600px) {
    .nps-slide {
        min-width: 100%; /* Show 1 slide on small screens */
        flex-basis: 100%;
        padding: 0 5px; /* Reduce padding */
    }
     .nps-student-popup-content {
        padding: 20px 15px;
        max-width: 95%; /* Allow popup to take more width */
    }
    #nps-student-detail-content .student-profile h3 {
        font-size: 1.3em;
    }
    #nps-student-detail-content .student-profile .table th,
    #nps-student-detail-content .student-profile .table td {
        padding: 6px 8px;
    }
}