/* ==========================================================================
   SkillGun - Student module theme  (Content/skillgun-student.css)
   Loaded by PalleTechnologies.Master ONLY for /Student/* pages and
   StudentLogin.aspx, after each page's own <head> styles.
   Purely visual: no element names, IDs, markup, scripts, show/hide or
   positioning that page scripts rely on are changed.
   Uses :has() for a few page-specific touches; older browsers simply
   keep the previous look for those parts.
   ========================================================================== */

:root {
    --st-brand: #198754;
    --st-brand-2: #12a37a;
    --st-brand-dark: #136c43;
    --st-ink: #0f172a;
    --st-text: #334155;
    --st-muted: #64748b;
    --st-line: #e6ebf2;
    --st-bg: #f3f6fb;
    --st-card: #ffffff;
    --st-radius: 16px;
    --st-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
    --st-shadow-hover: 0 6px 24px rgba(15, 23, 42, .12);
}

body { background-color: var(--st-bg); }

/* ---------- Shared student header (photo, welcome, status, logout) ---------- */
.left-content .row:has(> div > .form-group > #ContentPlaceHolder1_imgProfilePhoto) {
    background: var(--st-card);
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    box-shadow: var(--st-shadow);
    margin: 18px 0 24px;
    padding: 18px 8px;
    position: relative;
    overflow: hidden;
}
.left-content .row:has(> div > .form-group > #ContentPlaceHolder1_imgProfilePhoto)::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--st-brand), var(--st-brand-2), #2563eb);
}
.left-content .row:has(> div > .form-group > #ContentPlaceHolder1_imgProfilePhoto) h2,
.left-content .row:has(> div > .form-group > #ContentPlaceHolder1_imgProfilePhoto) h3 {
    font-weight: 700;
    letter-spacing: -.02em;
}
.left-content .row:has(> div > .form-group > #ContentPlaceHolder1_imgProfilePhoto) h4 {
    font-size: 16px;
    color: var(--st-text);
}

#ContentPlaceHolder1_imgProfilePhoto {
    width: 140px;
    height: 140px !important;
    max-width: 100%;
    padding: 0;
    margin: 4px auto !important;
    object-fit: cover;
    border: 4px solid #fff !important;
    border-radius: 50%;
    background-color: #e2e8f0;
    box-shadow: 0 0 0 2px var(--st-brand), 0 6px 18px rgba(15, 23, 42, .15);
}

#ContentPlaceHolder1_btnLogout {
    background: #fff;
    color: #dc2626;
    border: 1px solid #fca5a5;
    border-radius: 999px;
    padding: 7px 20px;
    font-weight: 600;
}
#ContentPlaceHolder1_btnLogout:hover,
#ContentPlaceHolder1_btnLogout:focus {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

/* scrolling notice under the welcome text */
.left-content marquee p { font-weight: 600; margin: 4px 0; }

/* ---------- Section cards (fieldsets & panels) ---------- */
.left-content fieldset {
    background: var(--st-card);
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    box-shadow: var(--st-shadow);
    padding: 20px 24px 24px;
    margin: 0 0 24px;
    min-width: 0;
}
.left-content fieldset[style*="padding: 50px"] { padding: 20px 24px 24px !important; }
.left-content fieldset::after { content: ""; display: table; clear: both; }

.left-content legend {
    float: left;
    width: 100%;
    font-size: 18px;
    font-weight: 700;
    color: var(--st-ink);
    text-transform: capitalize;
    letter-spacing: -.01em;
    border-bottom: 1px solid var(--st-line);
    padding: 0 0 12px;
    margin: 0 0 16px;
}
.left-content legend + * { clear: both; }

.left-content .panel {
    border-radius: var(--st-radius);
    border-color: var(--st-line);
    box-shadow: var(--st-shadow);
    overflow: hidden;
}
.left-content .panel > .panel-heading {
    background: linear-gradient(90deg, #f0faf5, #f5f8ff);
    border-bottom: 1px solid var(--st-line);
    color: var(--st-ink);
    font-size: 16px;
    text-transform: capitalize;
    padding: 14px 20px;
}
.left-content .panel > .panel-body { padding: 20px; }

/* ---------- Home: escalations & pending actions ---------- */
#ContentPlaceHolder1_Updatedrivedetails > .row,
#ContentPlaceHolder1_UpdateStatus > .row { margin-left: 0; margin-right: 0; }
#ContentPlaceHolder1_Updatedrivedetails > .row > div,
#ContentPlaceHolder1_UpdateStatus > .row > div {
    margin-bottom: 10px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    line-height: 1.45;
    border-radius: 12px !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}

/* ---------- Home: action tiles ---------- */
.left-content .row-eq-height { padding-top: 0 !important; margin-bottom: 16px; }
.left-content div.action-box {
    background: var(--st-card);
    border: 1px solid var(--st-line);
    border-radius: 14px;
    box-shadow: var(--st-shadow);
    padding: 18px 18px 16px;
    margin-right: 14px;
    color: var(--st-text);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.left-content div.action-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--st-shadow-hover);
    border-color: #cfe9dc;
}
.left-content div.action-box h5 {
    font-size: 11px;
    font-weight: 700;
    color: var(--st-brand);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.left-content div.action-box p {
    margin: 8px 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--st-text);
}
.left-content div.action-box a.button {
    margin-top: auto;
    background: linear-gradient(135deg, var(--st-brand), var(--st-brand-2)) !important;
    color: #fff !important;
    border-radius: 10px;
    padding: 11px 12px;
    font-weight: 600;
    font-size: 14px;
    text-transform: capitalize;
    box-shadow: 0 2px 6px rgba(25, 135, 84, .25);
    transition: filter .15s ease, box-shadow .15s ease;
}
.left-content div.action-box a.button:hover,
.left-content div.action-box a.button:focus {
    filter: brightness(1.07);
    box-shadow: 0 4px 12px rgba(25, 135, 84, .35);
    text-decoration: none;
}
.left-content div.action-box a.button .glyphicon { margin-left: 4px; opacity: .9; }

/* ---------- Drive cards (applied / attended / drive lists) ---------- */
.left-content .detailsBox {
    background: var(--st-card);
    color: var(--st-text);
    border: 1px solid var(--st-line);
    border-left: 4px solid var(--st-brand);
    border-radius: 12px;
    box-shadow: var(--st-shadow);
    height: auto;
    min-height: 70px;
    font-weight: 500;
    transition: box-shadow .18s ease;
}
.left-content .detailsBox:hover { box-shadow: var(--st-shadow-hover); }
.left-content .detailsBox::after { content: ""; display: table; clear: both; }
.left-content .detailsBox > div:first-child { font-weight: 700; color: var(--st-ink); }

/* ---------- "Go to Home" links ---------- */
.left-content a.btn[href="Home.aspx"] {
    background: #fff;
    border: 1px solid var(--st-brand) !important;
    color: var(--st-brand);
    border-radius: 999px;
    padding: 7px 18px;
    font-weight: 600;
}
.left-content a.btn[href="Home.aspx"]::before { content: "\2190  "; }
.left-content a.btn[href="Home.aspx"]:hover,
.left-content a.btn[href="Home.aspx"]:focus { background: var(--st-brand); color: #fff; }

/* ---------- Tables (grids, attendance, results) ---------- */
.left-content .table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--st-shadow);
}
.left-content .table > tbody > tr:first-child > th,
.left-content .table > thead > tr > th {
    background: #f1f5f9;
    color: var(--st-ink);
    font-weight: 600;
}

/* ---------- Form fields inside student pages ---------- */
.left-content .form-control { border-radius: 10px; }
.left-content input.form-control:not([type=submit]):not([type=button]),
.left-content select.form-control { min-height: 38px; }

/* ==========================================================================
   StudentLogin.aspx - one centred login card
   ========================================================================== */
.left-content > .container:has(#ContentPlaceHolder1_tbPhoneNumber) {
    width: auto;
    max-width: 480px;
    margin: 36px auto 0;
    padding: 0 0 12px;
    background: var(--st-card);
    border: 1px solid var(--st-line);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, .10);
    overflow: hidden;
}
.left-content > .container:has(#ContentPlaceHolder1_tbPhoneNumber)::before {
    content: "SkillGun";
    display: block;
    padding: 22px 28px 20px;
    background: linear-gradient(120deg, var(--st-brand) 0%, var(--st-brand-2) 55%, #2563eb 100%);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.left-content > .container:has(#ContentPlaceHolder1_tbPhoneNumber) > .row { margin-left: 0; margin-right: 0; }
.left-content > .container:has(#ContentPlaceHolder1_tbPhoneNumber) > .row > .col-md-4 {
    width: 100%;
    float: none;
    max-width: none !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
}
.left-content > .container:has(#ContentPlaceHolder1_tbPhoneNumber) > .row > .col-md-4:empty { display: none; }
/* the email/password row is made invisible by the page script until a phone number is found;
   collapse its empty space only while it is invisible */
.left-content > .container:has(#ContentPlaceHolder1_tbPhoneNumber) > .row[style*="visibility: hidden"] { display: none; }
.left-content > .container:has(#ContentPlaceHolder1_tbPhoneNumber) h5.card-title {
    font-size: 22px;
    font-weight: 700;
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 18px !important;
}
.left-content > .container:has(#ContentPlaceHolder1_tbPhoneNumber) .form-control {
    height: 44px;
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 10px;
}
.left-content > .container:has(#ContentPlaceHolder1_tbPhoneNumber) .modal .form-control { height: 40px; }
#ContentPlaceHolder1_btnLogin {
    height: 46px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .02em;
}
#ContentPlaceHolder1_btnLogin:not([disabled]) { box-shadow: 0 4px 14px rgba(37, 99, 235, .30); }
#aReg { height: auto; white-space: normal; border-radius: 10px; padding: 10px 14px; }

.left-content .placement-policy-container {
    background: #f8fafc;
    border-color: var(--st-line);
    border-radius: 12px;
    font-size: 13.5px;
    max-height: 110px;
}
.left-content > .container:has(#ContentPlaceHolder1_tbPhoneNumber) canvas {
    border: 1px solid var(--st-line);
    border-radius: 10px;
    max-width: 100%;
}
.left-content > .container:has(#ContentPlaceHolder1_tbPhoneNumber) #captcha { max-width: 100%; }
#ContentPlaceHolder1_hypForgotPassword { color: #2563eb; font-weight: 600; }

/* ---------- Newer "Welcome" header card (e.g. Scheduled Drive Tests) ---------- */
.left-content .welcome-card {
    position: relative;
    overflow: hidden;
    background-color: var(--st-card);
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    box-shadow: var(--st-shadow);
    padding: 22px 24px 16px;
    margin-top: 18px;
    margin-bottom: 24px;
}
.left-content .welcome-card::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--st-brand), var(--st-brand-2), #2563eb);
}
.left-content .welcome-card .btn { border-radius: 999px; padding: 6px 18px; font-weight: 600; }
.left-content .welcome-card .btn-danger { background: #fff; color: #dc2626; border-color: #fca5a5; }
.left-content .welcome-card .btn-danger:hover,
.left-content .welcome-card .btn-danger:focus { background: #dc2626; border-color: #dc2626; color: #fff; }

/* ---------- AddReference.aspx & StudentCodingTestResult.aspx ---------- */
/* header row ("Welcome" + Logout) that these pages draw with an inline shadow */
.left-content .row.align-items-center[style*="box-shadow"] {
    margin-top: 18px !important;
    background: var(--st-card);
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    box-shadow: var(--st-shadow) !important;
    position: relative;
    overflow: hidden;
}
.left-content .row.align-items-center[style*="box-shadow"]::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--st-brand), var(--st-brand-2), #2563eb);
}
.left-content .row.align-items-center[style*="box-shadow"] h2 { font-weight: 700; letter-spacing: -.02em; }
.left-content .row.align-items-center[style*="box-shadow"] .btn-danger {
    background: #fff;
    color: #dc2626;
    border: 1px solid #fca5a5;
    border-radius: 999px;
    padding: 7px 20px;
    font-weight: 600;
}
.left-content .row.align-items-center[style*="box-shadow"] .btn-danger:hover,
.left-content .row.align-items-center[style*="box-shadow"] .btn-danger:focus { background: #dc2626; border-color: #dc2626; color: #fff; }

/* AddReference: grey bold inputs become clean white fields */
.left-content .txtbox {
    background-color: #fff;
    border: 1px solid #d6dce5;
    font-weight: 500;
    height: 42px;
}
.left-content .placeholder-bold::placeholder { font-weight: 500; color: #94a3b8; }
#btnSubmit.form-control { height: 42px; border-radius: 10px; font-weight: 600; border: 0; }
#ReferredCandidateList { margin-top: 10px; }
#ReferredCandidateList td { font-size: 14px; font-weight: 500; vertical-align: middle; }

/* StudentCodingTestResult: results table and Go to Home */
#ContentPlaceHolder1_div_CodingTable table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--st-shadow);
}
#ContentPlaceHolder1_ddlSubjects { border-radius: 10px; border-color: #d6dce5 !important; }
#ContentPlaceHolder1_btnHome {
    background: #fff;
    border: 1px solid var(--st-brand);
    color: var(--st-brand);
    border-radius: 999px;
    padding: 7px 18px;
    font-weight: 600;
}
#ContentPlaceHolder1_btnHome:hover, #ContentPlaceHolder1_btnHome:focus { background: var(--st-brand); color: #fff; }

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
    .left-content .btn.form-control, .left-content a.btn.form-control,
    .left-content input.btn.form-control, .left-content button.btn.form-control { height: auto; min-height: 38px; }
    .left-content .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .left-content .form-control, .left-content .btn, .left-content textarea, .left-content select,
    .left-content input[type=text], .left-content input[type=submit], .left-content input[type=button] { max-width: 100%; }
    .left-content .row:has(> div > .form-group > #ContentPlaceHolder1_imgProfilePhoto) { margin: 12px 0 18px; }
    .left-content fieldset { padding: 16px 16px 18px; }
    .left-content fieldset[style*="padding: 50px"] { padding: 16px 16px 18px !important; }
    .left-content div.action-box { margin: 0 0 14px; }
    .left-content > .container:has(#ContentPlaceHolder1_tbPhoneNumber) { margin: 16px 10px 0; }
    .left-content > .container:has(#ContentPlaceHolder1_tbPhoneNumber) > .row > .col-md-4 {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}

/* ---------- Print ---------- */
@media print {
    body { background: #fff !important; }
    .left-content fieldset, .left-content .panel, .left-content div.action-box,
    .left-content .detailsBox, .left-content .row { box-shadow: none !important; }
}
