/* =====================================================
   ADMIN PANEL – COMPLETE PROFESSIONAL VERSION
===================================================== */

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= GLOBAL ================= */
body {
    font-family: "Inter", Arial, sans-serif;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.5;
}

/* ================= HEADER ================= */
/* ================= HEADER ================= */

.admin-header{

    background:linear-gradient(90deg,#020617,#0f172a);
    color:#fff;

    display:flex;
    justify-content:space-between;
    align-items:flex-start;

    padding:12px 18px;

    gap:20px;

    flex-wrap:wrap;

}

/* Left */

.header-left{

    flex:0 0 auto;

}

.header-left h2{

    font-size:22px;
    font-weight:600;
    margin-top:8px;

}

/* Right */

.header-right{

    flex:1;

    display:flex;

    align-items:center;

    justify-content:flex-end;

    gap:10px;

    flex-wrap:wrap;

}

.header-right span{

    margin-right:10px;
    color:#fff;
    font-size:14px;
    font-weight:500;

}

/* ================= HEADER BUTTONS ================= */
/* ================= HEADER BUTTON BASE ================= */
.header-right .btn {
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    backdrop-filter: blur(4px);
    white-space:nowrap;

    padding:8px 14px;

    font-size:13px;

    border-radius:8px;
}

/* Hover Effect */
.header-right .btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Active Button (for current page) */
.header-right .btn.active {
    background: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.6);
}

/* Add Hackathon */
.header-right .btn-add {
    background: #2563eb;
    color: #fff;
}

.header-right .btn-add:hover {
    background: #1d4ed8;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
}

/* Students Button */
.header-right .btn-students {
    background: #0ea5e9;
    color: #fff;
}

.header-right .btn-students:hover {
    background: #0284c7;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.6);
}

/* Mentors Button */
.header-right .btn-mentors {
    background: #16a34a;
    color: #fff;
}

.header-right .btn-mentors:hover {
    background: #15803d;
    box-shadow: 0 0 12px rgba(22, 163, 74, 0.6);
}

.header-right .btn-companies {
    background: navy;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    margin-left: 8px;
}

.header-right .btn-judges {
    background: saddlebrown;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    margin-left: 8px;
}

.header-right .btn-judges:hover {
    background: rgb(136, 72, 27);
}

.header-right .btn-companies:hover {
    background: #554ee0;
}
.header-right .btn-faq {
    background: green;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    margin-left: 8px;

}
/* Logout Button */
.header-right .btn.logout {
    background: #dc2626;
    color: #fff;
}

.header-right .btn.logout:hover {
    background: #b91c1c;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.6);
}

/* ================= CONTENT ================= */
.content {
    padding: 25px;
}

.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

/* ================= BUTTONS ================= */
.btn {
    padding: 6px 8px;
    font-size: 11px;
    border-radius: 5px;
    text-decoration: none;
    color: #ffffff;
    display: inline-block;
    text-align: center;
    transition: 0.2s ease;
}

.btn:hover {
    opacity: 0.85;
}

/* Button Colors */
.btn.logout {
    background: #dc2626;
}

.btn-view {
    background: #2563eb;
}

.btn-edit {
    background: #f59e0b;
}

.btn-delete {
    background: #dc2626;
}

.btn-teams {
    background: #0a5ea3;
}

.btn-guideline-add,
.btn-problem-add {
    background: #16a34a;
}

.btn-guideline-view,
.btn-problem-view {
    background: #2563eb;
}

.btn-guideline-edit,
.btn-problem-edit {
    background: #f59e0b;
}

.btn-problem-delete {
    background: #dc2626;
}
/* Allot Team Button */

.header-right .btn-allot{

    background:#8b5cf6;
    color:#fff;

}

.header-right .btn-allot:hover{

    background:#7c3aed;
    box-shadow:0 0 12px rgba(139,92,246,.5);

}
/* ================= TABLE WRAPPER ================= */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 15px;
}

/* ================= TABLE ================= */
.admin-table {
    width: 100%;
    min-width: 1500px;
    border-collapse: collapse;
    background: #ffffff;
}

.admin-table th,
.admin-table td {
    border: 1px solid #e2e8f0;
    padding: 10px 8px;
    font-size: 12px;
    text-align: center;
    vertical-align: middle;
}

.admin-table th {
    background: #f1f5f9;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #334155;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

/* Image */
.admin-table img {
    max-width: 50px;
    border-radius: 6px;
}

/* Wrap long text */
.wrap-text {
    word-break: break-word;
    white-space: normal;
    max-width: 160px;
}

/* Date */
.date-cell {
    font-size: 11px;
}

.to-text {
    font-size: 10px;
    color: #64748b;
}

/* ================= COLUMN FLEX FIX ================= */


/* ================= ACTION / GUIDELINES / PROBLEM ================= */

.action-cell,
.guidelines-cell,
.problem-cell {
    text-align: center;
    vertical-align: middle;
    min-width: 120px;
}

.action-cell .btn,
.guidelines-cell .btn,
.problem-cell .btn {
    display: block;
    width: 90px;
    margin: 4px auto;
    padding: 6px 0;
}

/* Teams column */
.teams-cell {
    min-width: 120px;
}

/* ================= NO DATA ================= */
.no-data {
    padding: 20px;
    text-align: center;
    background: #f8fafc;
    border-radius: 6px;
}

/* ================= LOGIN ================= */
.login-wrapper {
    width: 360px;
    max-width: 95%;
    margin: 120px auto;
    background: #ffffff;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}

.login-wrapper input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

.login-wrapper button {
    width: 100%;
    padding: 10px;
    background: #2563eb;
    border: none;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
}

/* ================= TEAM SECTION ================= */
.team-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .team-layout {
        grid-template-columns: 1fr;
    }
}

/* ================= STUDENT TOOLBAR ================= */
.students-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 14px;
    gap: 10px;
}

.students-search input {
    width: 240px;
    padding: 7px 10px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

.btn-export {
    background: #16a34a;
    color: #ffffff;
    font-size: 12px;
    padding: 7px 14px;
    border-radius: 6px;
}

/* =====================================================
   FULL RESPONSIVE IMPROVEMENTS
===================================================== */

/* ================= LARGE TABLET (1200px) ================= */
@media (max-width: 1200px) {

    .admin-table {
        min-width: 1300px;
    }

    .content {
        padding: 20px;
    }
}

/* ================= TABLET (992px) ================= */
@media (max-width: 992px) {

    .admin-header {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 10px;
        text-align: center;
    }

    .header-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn {
        font-size: 11px;
        padding: 6px 10px;
    }

    .card {
        padding: 18px;
    }

    .students-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .students-search input {
        width: 100%;
    }

    .btn-export {
        width: 100%;
        text-align: center;
    }
}

/* ================= MOBILE (768px) ================= */
@media (max-width: 768px) {

    .content {
        padding: 15px;
    }

    .admin-table {
        min-width: 1100px;
    }

    .action-cell .btn,
    .guidelines-cell .btn,
    .problem-cell .btn {
        width: 75px;
        font-size: 10px;
    }

    .wrap-text {
        max-width: 120px;
    }

    .login-wrapper {
        margin: 80px auto;
        padding: 22px;
    }

    .team-layout {
        grid-template-columns: 1fr;
    }
}

/* ================= SMALL MOBILE (480px) ================= */
@media (max-width: 480px) {

    body {
        font-size: 12px;
    }

    .admin-header h2 {
        font-size: 16px;
    }

    .btn {
        font-size: 10px;
        padding: 5px 8px;
    }

    .card {
        padding: 15px;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 6px;
        font-size: 10px;
    }

    .action-cell .btn,
    .guidelines-cell .btn,
    .problem-cell .btn {
        width: 65px;
        font-size: 9px;
    }

    .students-search input {
        font-size: 11px;
    }
}

/* ================= TABLE SCROLL BUTTONS ================= */

.table-scroll-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 12px;
}

.scroll-btn {
    padding: 6px 14px;
    font-size: 12px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.scroll-btn:hover {
    background: #1e40af;
}

/* =====================================================
   VIEW HACKATHON.PHP PAGE
===================================================== */

.view-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Image Section */
.view-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Details Section */
.view-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Each Row */
.detail-row {
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-row span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    display: block;
    margin-bottom: 4px;
}

.detail-row p {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    word-break: break-word;
}

/* Responsive */
@media (max-width: 900px) {
    .view-card {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .view-image {
        text-align: center;
    }

    .view-image img {
        max-width: 300px;
    }
}

/* =====================================================
   EDIT HACKATHON.PHP FORM
===================================================== */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.form-group input {
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    transition: 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Image Section */
.image-section {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.current-image img {
    width: 140px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.current-image p {
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

.upload-image label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Actions */
.form-actions {
    text-align: right;
}

.btn-update {
    background: #16a34a;
    padding: 10px 22px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-update:hover {
    background: #15803d;
}

/* Responsive */
@media (max-width: 900px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .image-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-actions {
        text-align: center;
    }
}

/* =====================================================
   TEAM DETAILS PAGE VIEW_REGISTERED TEAM.PHP – PREMIUM DESIGN
===================================================== */

.team-page {
    padding: 25px;
}

/* ===== HEADER SECTION ===== */
.team-header {
    background: #ffffff;
    padding: 22px 25px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
    flex-wrap: wrap;
    gap: 15px;
}

.team-title-bar h1 {
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 5px;
}

.team-title-bar p {
    font-size: 13px;
    color: #64748b;
}

.team-badge {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 30px;
    font-weight: 500;
}

/* ===== MAIN LAYOUT ===== */
.team-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 25px;
}

/* ===== LEFT PROFILE CARD ===== */
.team-profile {
    background: #ffffff;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}

.team-profile h4 {
    font-size: 15px;
    margin-bottom: 18px;
    border-left: 4px solid #2563eb;
    padding-left: 10px;
    font-weight: 600;
}

/* List */
.team-info-list {
    list-style: none;
}

.team-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 13px;
}

.team-info-list span {
    color: #64748b;
    font-weight: 500;
}

.team-info-list strong {
    color: #0f172a;
}

/* ===== RIGHT MEMBERS PANEL ===== */
.team-members-panel {
    background: #ffffff;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}

.team-members-panel h4 {
    font-size: 15px;
    margin-bottom: 18px;
    border-left: 4px solid #16a34a;
    padding-left: 10px;
    font-weight: 600;
}

/* Member Row */
.member-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    margin-bottom: 10px;
    transition: 0.2s ease;
}

.member-row:hover {
    background: #eef2ff;
}

/* Number Circle */
.member-index {
    width: 30px;
    height: 30px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Member Text */
.member-details strong {
    font-size: 14px;
    color: #0f172a;
}

.member-details small {
    display: block;
    font-size: 12px;
    color: #64748b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {

    .team-layout {
        grid-template-columns: 1fr;
    }

    .team-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-badge {
        align-self: flex-start;
    }
}

@media (max-width: 600px) {

    .team-title-bar h1 {
        font-size: 18px;
    }

    .member-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .member-index {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
}

/* =====================================================
   ADD HACKATHON FORM ADD HACKATHON.PHP– PREMIUM DESIGN
===================================================== */

.form-card h2 {
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 600;
    color: #0f172a;
}

/* Section Titles */
.form-section {
    font-size: 15px;
    font-weight: 600;
    margin: 25px 0 15px;
    padding-left: 10px;
    border-left: 4px solid #2563eb;
    color: #1e293b;
}

/* Form Row Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 15px;
}

/* Inputs */
.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    transition: 0.2s ease;
    background: #ffffff;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* File Input */
.form-card input[type="file"] {
    padding: 6px;
}

/* Error Text */
.error-text {
    display: block;
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

/* Button */
.btn-update {
    background: linear-gradient(135deg, #16a34a, #15803d);
    padding: 10px 22px;
    font-size: 14px;
    border-radius: 6px;
    margin-top: 20px;
}

.btn-update:hover {
    opacity: 0.9;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 20px;
    }

    .form-card h2 {
        font-size: 20px;
    }

    .form-section {
        font-size: 14px;
    }
}

@media (max-width: 500px) {

    .content {
        padding: 15px;
    }

    .form-card {
        padding: 18px;
    }

    .btn-update {
        width: 100%;
        text-align: center;
    }
}

#imagePreviewContainer {
    padding: 8px;
    background: #f8fafc;
    border-radius: 6px;
    min-height: 40px;
}

/* ================= MODERN PROBLEM PAGE ================= */

.content {
    padding: 35px;
    background: #f1f5f9;
}

/* ===== Top Banner ===== */
.problem-top-banner {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 40px;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .18);
}

.problem-top-banner h1 {
    font-size: 14px;
    opacity: 0.7;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.problem-top-banner h2 {
    font-size: 28px;
    font-weight: 600;
    color: #38bdf8;
    margin-top: 5px;
    margin-bottom: 10px;
}

.problem-top-banner p {
    font-size: 14px;
    opacity: 0.85;
}

/* ===== Card ===== */
.problem-view-card {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 40px;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .08);
    position: relative;
    border: 1px solid #e2e8f0;
}

/* Decorative Left Accent */
.problem-view-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25px;
    bottom: 25px;
    width: 6px;
    background: linear-gradient(#2563eb, #0ea5e9);
    border-radius: 10px;
}

/* ===== Problem Number ===== */
.problem-number {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 6px 18px;
    font-size: 13px;
    border-radius: 30px;
    margin-bottom: 18px;
    font-weight: 500;
    letter-spacing: .5px;
}

/* ===== Title ===== */
.problem-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #0f172a;
}

/* ===== Description ===== */
.problem-description {
    font-size: 15px;
    line-height: 1.9;
    color: #334155;
}

/* ===== Tables ===== */
.problem-description table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
}

.problem-description th {
    background: #e2e8f0;
    font-weight: 600;
}

.problem-description table,
.problem-description th,
.problem-description td {
    border: 1px solid #e2e8f0;
    padding: 12px;
}

/* ===== Images ===== */
.problem-description img {
    max-width: 100%;
    border-radius: 15px;
    margin: 25px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

/* ===== Right Panel ===== */
.problem-side {
    border-left: 1px solid #e2e8f0;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Download Button Upgrade */
.problem-side .btn {
    padding: 12px;
    font-size: 14px;
    border-radius: 12px;
}

.problem-meta {
    font-size: 13px;
    color: #64748b;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .problem-view-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .problem-side {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #e2e8f0;
        padding-top: 25px;
    }
}

/* ================= PDF MODAL ================= */

.pdf-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.pdf-modal-content {
    width: 85%;
    height: 85%;
    background: #ffffff;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
    overflow: hidden;
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #0f172a;
    color: #ffffff;
}

.close-pdf {
    font-size: 22px;
    cursor: pointer;
}

#pdfFrame {
    flex: 1;
    width: 100%;
    border: none;
}

/* ================= MENTOR STATUS BADGES ================= */

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    min-width: 80px;
}

.status-pending {
    background: #fef9c3;
    color: #92400e;
}

.status-approved {
    background: #dcfce7;
    color: #166534;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}


/******* STUDENT PROFILE **********/
/******** STUDENT PROFILE PAGE ********/

.profile-container {
    max-width: 1000px;
    margin: auto;
}

/* ================= HEADER ================= */

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;

    background: #ffffff;
    padding: 25px;
    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.profile-photo {
    width: 120px;
    height: 120px;

    border-radius: 50%;
    object-fit: cover;

    border: 4px solid #6366f1;
}

.profile-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    color: #111827;
}

.profile-header p {
    margin: 4px 0;
    color: #64748b;
    font-size: 14px;
}

/* ================= PROFILE CARDS ================= */

.profile-section {
    margin-bottom: 20px;

    padding: 22px;

    background: #ffffff;

    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);

    transition: 0.3s;
}

.profile-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.profile-section h3 {
    margin-bottom: 12px;

    font-size: 18px;
    font-weight: 600;

    color: #111827;

    border-bottom: 2px solid #e5e7eb;

    padding-bottom: 6px;
}

.profile-section p {
    margin: 6px 0;
    font-size: 14px;
    color: #374151;
}

/* ================= SOCIAL LINKS ================= */

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    color: white;
    background: #6366f1;
    transition: 0.2s;
}

.social-links a:hover {
    background: #4f46e5;
}

/* ================= PROFILE GRID ================= */

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ================= MOBILE ================= */

@media(max-width:768px) {

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

}


/* ===== FAQ Answer Textarea ===== */

.admin-table textarea{
width:100%;
min-height:70px;
padding:10px 12px;
border:1px solid #d1d5db;
border-radius:6px;
font-size:14px;
font-family:inherit;
resize:vertical;
transition:0.2s ease;
background:#fafafa;
}

.admin-table textarea:focus{
outline:none;
border-color:#f59e0b;
box-shadow:0 0 0 2px rgba(245,158,11,0.15);
background:#fff;
}

/* ===== FAQ Submit Button ===== */

.admin-table .btn-faq{
margin-top:8px;
padding:6px 14px;
border:none;
border-radius:6px;
font-size:13px;
font-weight:600;
cursor:pointer;
background:#f59e0b;
color:#fff;
transition:0.2s ease;
}

.admin-table .btn-faq:hover{
background:#d97706;
transform:translateY(-1px);
}

.problem-box {
    margin-top: 20px;
    padding: 18px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Header */
.problem-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

/* Icon */
.view-icon {
    font-size: 16px;
    cursor: pointer;
    color: #2563eb;
    transition: 0.2s;
}

.view-icon:hover {
    transform: scale(1.2);
}

/* Content */
.problem-content {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
    background: #f9fafb;
    padding: 14px;
    border-radius: 10px;
    max-height: 250px;
    overflow-y: auto;
}

/* MESSAGE BOX */

.msg-box {
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.msg-box.success {
    background: #dcfce7;
    color: #166534;
}

.msg-box.error {
    background: #fee2e2;
    color: #991b1b;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-warning {
    background: #f59e0b;
    color: #fff;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-email {
    background: linear-gradient(135deg, #4F46D8, #3932B8);
    color: #fff;
}

.btn-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(79, 70, 216, .25);
}

/* Delete Student Button */
.btn-delete {
    display: inline-block;
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-delete:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.btn-delete:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 3px;
}



.problem-description {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #243b60;
    overflow-wrap: anywhere;
}

.problem-description p {
    margin: 0 0 14px;
}

.problem-description h1,
.problem-description h2,
.problem-description h3,
.problem-description h4 {
    color: #142b50;
    margin: 22px 0 10px;
    font-weight: 700;
}

.problem-description ul,
.problem-description ol {
    padding-left: 28px;
    margin: 10px 0 18px;
}

.problem-description li {
    margin-bottom: 6px;
}

.problem-description ul > li::marker,
.problem-description ol > li::marker {
    color: #f97316;
}

.problem-description figure.image {
    margin: 16px 0;
}

.problem-description img {
    max-width: 100%;
    height: auto;
}

.problem-description table {
    width: 100%;
    border-collapse: collapse;
}

.problem-description td,
.problem-description th {
    padding: 8px;
    border: 1px solid #dbe3ef;
}
