/* === FSM ONLINE BAĞLANTI (PORTAL) === */
/* Panel, title, input, button and alert styles come from career.css */

/* page area below the fixed header */
.fsm-portal-main {
    padding-top: 120px;
    padding-bottom: 60px;
}

.fsm-portal-panel {
    margin: 0 auto;
}

.fsm-portal-panel .fsm-h1 {
    font-size: 2.6rem !important;
    line-height: 1.15;
}

/* login + first password change: small card centered in the visible screen */
.fsm-portal-main.is-compact {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fsm-portal-main.is-compact .fsm-portal-panel {
    max-width: 480px;
    padding: 36px 40px;
}

.fsm-portal-main.is-compact .fsm-h1 {
    font-size: 2.2rem !important;
    margin-bottom: 22px;
}

.fsm-portal-main.is-compact .fsm-career-desc {
    margin-bottom: 18px;
}

.fsm-portal-narrow {
    max-width: 520px;
}

.fsm-portal-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(90, 169, 255, 0.12);
    border: 1px solid rgba(90, 169, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.fsm-portal-form .fsm-career-submit {
    width: 100%;
    margin-top: 10px;
}

/* password + show/hide */
.fsm-portal-password {
    position: relative;
}

.fsm-portal-password .fsm-input {
    padding-right: 84px;
}

.fsm-portal-eye {
    position: absolute;
    right: 8px;
    top: calc(50% + 5px);
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #1e3a5f;
    font-family: Inter-SemiBold;
    font-size: 13px !important;
    padding: 6px 8px;
    cursor: pointer;
}

/* password rules checklist */
.fsm-portal-rules {
    margin: 4px 0 8px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.fsm-portal-rules span {
    display: block;
    margin-bottom: 8px;
    font-family: Inter-SemiBold;
}

.fsm-portal-rules ul {
    list-style: none;
    display: grid;
    gap: 6px;
}

.fsm-portal-rules li {
    position: relative;
    padding-left: 24px;
    line-height: 1.4;
    opacity: .75;
}

.fsm-portal-rules li::before {
    content: '○';
    position: absolute;
    left: 2px;
    top: 0;
    color: rgba(255, 255, 255, 0.5);
}

.fsm-portal-rules li.is-ok {
    opacity: 1;
    color: #bbf7d0;
}

.fsm-portal-rules li.is-ok::before {
    content: '✓';
    color: #4ade80;
}

/* logged in area */
.fsm-portal-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.fsm-portal-top .fsm-h1 {
    margin-bottom: 6px;
}

.fsm-portal-user {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    margin-bottom: 20px;
    word-break: break-word;
}

.fsm-portal-top .fsm-portal-user {
    margin-bottom: 0;
}

.fsm-portal-user strong {
    color: #ffffff;
}

.fsm-portal-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border-radius: 10px;
    padding: 10px 18px;
    font-family: Inter-SemiBold;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
}

.fsm-portal-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.fsm-portal-link {
    display: block;
    margin: 18px auto 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

.fsm-portal-link:hover {
    color: #ffffff;
}

.fsm-portal-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 18px;
}

.fsm-portal-box .fsm-career-section-title {
    margin-top: 0;
}

.fsm-portal-soon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.fsm-portal-details summary {
    cursor: pointer;
    color: #ffffff;
    font-family: Inter-SemiBold;
    font-size: 16px;
    list-style: none;
}

.fsm-portal-details summary::-webkit-details-marker {
    display: none;
}

.fsm-portal-details summary::after {
    content: '▾';
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.6);
}

.fsm-portal-details[open] summary::after {
    content: '▴';
}

.fsm-portal-inner {
    margin-top: 18px;
}

.fsm-portal-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .fsm-portal-main {
        padding-top: 100px;
    }

    .fsm-portal-main.is-compact .fsm-portal-panel {
        padding: 28px 20px;
    }

    .fsm-portal-panel .fsm-h1,
    .fsm-portal-main.is-compact .fsm-h1 {
        font-size: 1.9rem !important;
    }

    .fsm-portal-box {
        padding: 18px 16px;
    }

    .fsm-portal-top .fsm-portal-button {
        width: 100%;
    }
}

/* ════════════════════════════════════════════
   FILE MANAGER
   ════════════════════════════════════════════ */
.fsm-fm-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.fsm-fm-crumbs,
.fsm-fm-picker-path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.fsm-fm-crumb {
    background: none;
    border: none;
    color: #5aa9ff;
    font-family: Inter-SemiBold;
    font-size: 15px !important;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fsm-fm-crumb:hover {
    background: rgba(255, 255, 255, 0.08);
}

.fsm-fm-crumb.is-current {
    color: #ffffff;
    cursor: default;
}

span.fsm-fm-crumb.is-current:hover {
    background: none;
}

.fsm-fm-sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.fsm-fm-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fsm-fm-search {
    width: 210px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-family: Inter-Regular;
    font-size: 14px;
    outline: none;
}

.fsm-fm-search::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.fsm-fm-search:focus {
    border-color: #5aa9ff;
}

.fsm-portal-button.is-primary {
    background: #0080FF;
    border-color: #0080FF;
}

.fsm-portal-button.is-primary:hover {
    background: #1a8dff;
}

label.fsm-portal-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* list */
.fsm-fm-list {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.12);
}

.fsm-fm-list.is-dragover {
    border-color: #5aa9ff;
    box-shadow: 0 0 0 3px rgba(90, 169, 255, 0.25);
}

.fsm-fm-list.is-dragover::after {
    content: attr(data-drop);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 22, 40, 0.85);
    color: #ffffff;
    font-family: Inter-SemiBold;
    font-size: 18px;
    pointer-events: none;
}

.fsm-fm-head,
.fsm-fm-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 130px 330px;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
}

.fsm-fm-head {
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fsm-fm-head button,
.fsm-fm-head span {
    background: none;
    border: none;
    text-align: left;
    color: rgba(255, 255, 255, 0.6);
    font-family: Inter-SemiBold;
    font-size: 12px !important;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 0;
    cursor: pointer;
}

.fsm-fm-head span {
    cursor: default;
    text-align: right;
}

.fsm-fm-head button.is-sorted {
    color: #ffffff;
}

.fsm-fm-head button.is-sorted::after {
    content: " \25B2";
    font-size: 10px;
}

.fsm-fm-head button.is-sorted[data-dir="desc"]::after {
    content: " \25BC";
}

.fsm-fm-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    transition: background .15s;
}

.fsm-fm-row:last-child {
    border-bottom: none;
}

.fsm-fm-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.fsm-fm-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.fsm-fm-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.fsm-fm-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
    font-size: 14px;
}

button.fsm-fm-label {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: Inter-SemiBold;
    text-align: left;
}

button.fsm-fm-label:hover {
    color: #5aa9ff;
    text-decoration: underline;
}

.fsm-fm-size,
.fsm-fm-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    white-space: nowrap;
}

.fsm-fm-row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.fsm-fm-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-radius: 8px;
    padding: 6px 10px;
    font-family: Inter-Medium;
    font-size: 12.5px !important;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}

.fsm-fm-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.fsm-fm-btn.is-primary {
    background: rgba(0, 128, 255, 0.25);
    border-color: rgba(90, 169, 255, 0.6);
}

.fsm-fm-btn.is-primary:hover {
    background: rgba(0, 128, 255, 0.4);
}

.fsm-fm-empty {
    padding: 36px 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.fsm-fm-empty.is-error {
    color: #fecaca;
}

.fsm-fm-hint {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    line-height: 1.5;
}

/* upload queue */
.fsm-fm-queue {
    margin-top: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
}

.fsm-fm-queue[hidden] {
    display: none;
}

.fsm-fm-queue-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 8px;
}

.fsm-fm-queue-head .fsm-portal-link {
    margin: 0;
    font-size: 13px;
}

.fsm-fm-queue ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.fsm-fm-qtop {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 5px;
}

.fsm-fm-qname {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fsm-fm-qstate {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
}

.fsm-fm-qbar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.fsm-fm-qfill {
    height: 100%;
    width: 0%;
    background: #0080FF;
    transition: width .2s;
}

.fsm-fm-qitem.is-done .fsm-fm-qfill {
    background: #22c55e;
}

.fsm-fm-qitem.is-done .fsm-fm-qstate {
    color: #bbf7d0;
}

.fsm-fm-qitem.is-error .fsm-fm-qfill {
    background: #ef4444;
    width: 100% !important;
}

.fsm-fm-qitem.is-error .fsm-fm-qstate {
    color: #fecaca;
    white-space: normal;
}

/* dialog */
.fsm-fm-modal {
    position: fixed;
    inset: 0;
    z-index: 10000000;
    background: rgba(5, 12, 24, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.fsm-fm-modal[hidden] {
    display: none;
}

.fsm-fm-modal-box {
    width: min(480px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    background: #0a1628;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 26px 26px 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.fsm-fm-modal-box h3 {
    color: #ffffff;
    font-family: Inter-SemiBold;
    font-size: 18px;
    margin-bottom: 16px;
    word-break: break-word;
}

.fsm-fm-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.fsm-fm-picker {
    margin-top: 10px;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.fsm-fm-picker-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-family: Inter-Regular;
    font-size: 14px !important;
    padding: 10px 14px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fsm-fm-picker-item:last-child {
    border-bottom: none;
}

.fsm-fm-picker-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* file manager on tablets / phones */
@media (max-width: 900px) {
    .fsm-fm-head {
        display: none;
    }

    .fsm-fm-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "name name" "size date" "actions actions";
        row-gap: 6px;
        padding: 12px 14px;
    }

    .fsm-fm-name { grid-area: name; }
    .fsm-fm-size { grid-area: size; }
    .fsm-fm-date { grid-area: date; text-align: right; }
    .fsm-fm-row-actions { grid-area: actions; justify-content: flex-start; }

    .fsm-fm-label {
        white-space: normal;
        word-break: break-word;
    }

    .fsm-fm-actions,
    .fsm-fm-search {
        width: 100%;
    }

    .fsm-fm-actions .fsm-portal-button {
        flex: 1;
        justify-content: center;
        text-align: center;
    }
}
