/**
 * Dean's Advisory Desk — Frontend Portal Styles (WooCommerce My Account)
 * Clean, Apple-minimalist typography with institutional gold (#b8860b) accents.
 */

.lc-deans-portal-wrap,
.lc-deans-thread-view-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1d1d1f;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Nav Badge in My Account Menu */
.lc-deans-nav-badge {
    background: #d32f2f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
    display: inline-block;
    line-height: 1.2;
}

/* Standing Telemetry Banner — Apple-White Standard */
.lc-deans-standing-banner {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    color: #1d1d1f;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.lc-deans-standing-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.lc-deans-standing-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.lc-deans-standing-badge-strip {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.lc-deans-prestige-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #996515;
    background: rgba(184, 134, 11, 0.08);
    border: 1px solid rgba(184, 134, 11, 0.22);
    padding: 2px 8px;
    border-radius: 14px;
    line-height: 1.2;
}

.lc-deans-prestige-tag .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    line-height: 13px;
}

.lc-deans-tier-tag {
    background: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid #e5e5ea;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 14px;
    line-height: 1.2;
}

.lc-deans-standing-name {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    color: #1d1d1f;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.lc-deans-standing-metrics {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.lc-deans-metric-box {
    background: #f5f5f7;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    padding: 6px 14px;
    text-align: center;
    min-width: 72px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.lc-deans-metric-box:hover {
    background: #ebebf0;
    border-color: #d1d1d6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lc-deans-metric-box:active {
    transform: translateY(0);
}

.lc-deans-metric-label {
    display: block;
    font-size: 9.5px;
    text-transform: uppercase;
    color: #86868b;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.lc-deans-metric-value {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #1d1d1f;
    margin-top: 1px;
    line-height: 1.1;
}

.lc-deans-metric-value.lc-rank-highlight {
    color: #b8860b;
}

/* 10 Faculty Roster — Compact Horizontal Scrolling Row */
.lc-deans-roster-container {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 22px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.lc-deans-roster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.lc-deans-roster-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.lc-deans-roster-pill {
    background: #eef2f6;
    color: #1565c0;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.lc-deans-roster-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1d1d1f;
}

.lc-deans-roster-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.lc-deans-roster-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 20px;
}

.lc-deans-status-dot {
    width: 7px;
    height: 7px;
    background: #2e7d32;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

.lc-deans-scroll-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.lc-roster-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #d1d1d6;
    background: #ffffff;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.lc-roster-nav-btn:hover {
    background: #0071e3;
    color: #ffffff;
    border-color: #0071e3;
    transform: scale(1.05);
}

.lc-roster-nav-btn svg {
    display: block;
}

.lc-deans-roster-subtext {
    font-size: 13px;
    color: #6e6e73;
    margin: 0 0 14px 0;
    line-height: 1.4;
}

/* Horizontal Scrolling Track */
.lc-deans-roster-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 10px 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #d1d1d6 transparent;
    cursor: grab;
}

.lc-deans-roster-scroll.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.lc-deans-roster-scroll::-webkit-scrollbar {
    height: 5px;
}

.lc-deans-roster-scroll::-webkit-scrollbar-track {
    background: #f5f5f7;
    border-radius: 4px;
}

.lc-deans-roster-scroll::-webkit-scrollbar-thumb {
    background: #d1d1d6;
    border-radius: 4px;
}

/* Compact Faculty Card — Apple-Balanced Spacing */
.lc-deans-card-compact {
    flex: 0 0 220px;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    background: #fbfbfd;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    padding: 16px 16px 14px 16px;
    cursor: pointer;
    transition: all 0.18s ease;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
    height: auto;
    box-sizing: border-box;
    user-select: none;
}

.lc-deans-card-compact:hover {
    border-color: #b8860b;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.lc-deans-card-compact.is-selected {
    border-color: #0071e3;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.25);
}

.lc-deans-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.lc-deans-card-top .lc-deans-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-deans-card-top .lc-deans-card-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.lc-deans-card-top .lc-deans-card-status {
    font-size: 11px;
    color: #2e7d32;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lc-deans-card-info {
    margin-top: auto;
}

.lc-deans-card-compact .lc-deans-card-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #1d1d1f;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-deans-card-compact .lc-deans-card-title {
    font-size: 11.5px;
    font-weight: 600;
    color: #b8860b;
    margin: 0 0 6px 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-deans-card-compact .lc-deans-card-dept {
    font-size: 11px;
    color: #86868b;
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Grid fallback */
.lc-deans-roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

/* Section Header */
.lc-deans-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.lc-deans-section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

/* Buttons */
.lc-deans-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.lc-deans-btn-primary {
    background: #111111;
    color: #ffffff;
}

.lc-deans-btn-primary:hover {
    background: #333333;
    color: #ffffff;
}

.lc-deans-btn-outline {
    background: transparent;
    color: #111111;
    border: 1px solid #ccd0d4;
}

.lc-deans-btn-outline:hover {
    background: #f4f4f4;
}

.lc-btn-large {
    padding: 13px 26px;
    font-size: 15px;
}

/* Threads Table */
.lc-deans-threads-table-wrap {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 35px;
}

.lc-deans-threads-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lc-deans-threads-table th {
    background: #fbfbfd;
    padding: 12px 18px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6e6e73;
    border-bottom: 1px solid #e5e5ea;
    text-align: left;
}

.lc-deans-threads-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #f0f0f2;
    vertical-align: middle;
}

.lc-deans-thread-title {
    font-weight: 600;
    color: #111;
    text-decoration: none;
    display: block;
}

.lc-deans-thread-title:hover {
    color: #b8860b;
}

.lc-deans-dept-badge {
    background: #f0f0f5;
    color: #333;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.lc-deans-status-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.lc-deans-status-pill.is-open {
    background: #e3f2fd;
    color: #1565c0;
}

.lc-deans-status-pill.is-action-needed {
    background: #fff3e0;
    color: #e65100;
}

.lc-deans-status-pill.is-resolved {
    background: #e8f5e9;
    color: #2e7d32;
}

.lc-deans-time-cell {
    font-size: 12px;
    color: #888;
}

.lc-deans-view-link {
    font-weight: 600;
    color: #111;
    text-decoration: none;
    font-size: 13px;
}

.lc-deans-view-link:hover {
    text-decoration: underline;
}

/* Empty State */
.lc-deans-empty-state {
    background: #fbfbfd;
    border: 2px dashed #e5e5ea;
    border-radius: 14px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 35px;
}

.lc-deans-empty-icon .dashicons {
    font-size: 44px;
    width: 44px;
    height: 44px;
    color: #b8860b;
}

.lc-deans-empty-state h4 {
    font-size: 18px;
    margin: 12px 0 6px;
}

.lc-deans-empty-state p {
    font-size: 14px;
    color: #666;
    max-width: 500px;
    margin: 0 auto 20px;
}

/* Form Card */
.lc-deans-form-card {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 14px;
    padding: 28px;
}

.lc-deans-form-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.lc-deans-form-header .dashicons {
    color: #b8860b;
    font-size: 22px;
}

.lc-deans-form-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.lc-deans-form-intro {
    font-size: 13px;
    color: #666;
    margin: 0 0 20px;
}

.lc-deans-field-group {
    margin-bottom: 18px;
}

.lc-deans-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.lc-deans-select,
.lc-deans-input,
.lc-deans-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    font-size: 14px;
    color: #111;
    background: #fff;
    box-sizing: border-box;
}

.lc-deans-select:focus,
.lc-deans-input:focus,
.lc-deans-textarea:focus {
    border-color: #b8860b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

/* Thread Conversation View */
.lc-deans-thread-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.lc-deans-back-link {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

.lc-deans-back-link:hover {
    text-decoration: underline;
}

.lc-deans-thread-banner {
    background: #fbfbfd;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 25px;
}

.lc-deans-thread-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.lc-deans-session-id {
    font-size: 12px;
    color: #888;
    font-family: monospace;
}

.lc-deans-thread-h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.lc-deans-assigned-lead {
    font-size: 13px;
    color: #555;
}

/* Messages Stream */
.lc-deans-messages-stream {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.lc-deans-msg-bubble {
    border-radius: 12px;
    padding: 18px 22px;
}

.lc-deans-msg-bubble.is-advisor {
    background: #fdfaf3;
    border: 1px solid #ecd8ab;
    border-left: 5px solid #b8860b;
}

.lc-deans-msg-bubble.is-student {
    background: #f5f5f7;
    border: 1px solid #e5e5ea;
    border-left: 5px solid #111;
}

.lc-deans-msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

.lc-deans-advisor-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #111;
}

.lc-deans-advisor-tag .dashicons {
    color: #b8860b;
    font-size: 16px;
}

.lc-deans-advisor-tag .lc-deans-role {
    color: #666;
    font-size: 12px;
}

.lc-deans-student-tag {
    font-size: 13px;
    color: #111;
}

.lc-deans-msg-date {
    font-size: 11px;
    color: #888;
}

.lc-deans-msg-body {
    font-size: 14px;
    line-height: 1.6;
    color: #222;
}

.lc-deans-msg-body p:last-child {
    margin-bottom: 0;
}

/* Reply Box */
.lc-deans-reply-box {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    padding: 24px;
}

.lc-deans-reply-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
}

.lc-deans-resolved-notice {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #2e7d32;
}

/* Responsive */
@media (max-width: 768px) {
    .lc-deans-portal-wrap,
    .lc-deans-thread-view-wrap {
        margin-bottom: 24px;
    }

    /* Compact 2-Row Standing Banner on Mobile (~80px height vs 380px) */
    .lc-deans-standing-banner {
        padding: 10px 12px;
        margin-bottom: 14px;
        border-radius: 10px;
    }

    .lc-deans-standing-main {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .lc-deans-standing-info {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 8px;
    }

    .lc-deans-standing-name {
        font-size: 15px;
        order: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .lc-deans-standing-badge-strip {
        order: 2;
        margin: 0;
        flex-shrink: 0;
        gap: 4px;
    }

    .lc-deans-prestige-tag {
        display: none; /* Hide verbose shield tag on narrow screens to save space */
    }

    .lc-deans-tier-tag {
        font-size: 10px;
        padding: 2px 7px;
    }

    /* 3-Column Equal-Width Metric Bar */
    .lc-deans-standing-metrics {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .lc-deans-metric-box {
        padding: 5px 2px;
        min-width: 0;
        border-radius: 6px;
    }

    .lc-deans-metric-label {
        font-size: 9px;
        letter-spacing: 0.2px;
    }

    .lc-deans-metric-value {
        font-size: 14.5px;
        margin-top: 1px;
    }

    /* Faculty Directorate Roster on Mobile */
    .lc-deans-roster-container {
        padding: 12px 12px 10px;
        margin-bottom: 14px;
        border-radius: 10px;
    }

    .lc-deans-roster-header {
        margin-bottom: 6px;
    }

    .lc-deans-roster-title {
        font-size: 13.5px;
    }

    .lc-deans-roster-pill {
        font-size: 9.5px;
        padding: 2px 6px;
    }

    .lc-deans-roster-subtext {
        display: none; /* Eliminate repeated explanatory text on mobile */
    }

    .lc-deans-card-compact {
        width: 150px;
        min-width: 150px;
        padding: 10px;
    }

    .lc-deans-card-name {
        font-size: 13px;
    }

    .lc-deans-card-title {
        font-size: 10.5px;
    }

    .lc-deans-roster-grid {
        grid-template-columns: 1fr;
    }

    /* Request Form on Mobile */
    .lc-deans-form-card {
        padding: 14px;
        margin-bottom: 16px;
        border-radius: 10px;
    }

    .lc-deans-form-header h3 {
        font-size: 15px;
    }

    .lc-deans-form-intro {
        font-size: 12px;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .lc-deans-field-group {
        margin-bottom: 12px;
    }

    .lc-deans-textarea {
        min-height: 80px;
    }
}

