/* =============================================================================
   Dashboard Bar Partials — all three shared bars
   dashboard_pinned_events_bar.php  → .pe-*
   dashboard_pinned_exam_bar.php    → .pex-*
   dashboard_quick_links_bar.php    → .dql-*
   Loaded globally via includes_top.php
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Pinned Events Bar  (.pe-*)
   --------------------------------------------------------------------------- */

.pe-bar {
    margin-bottom: 20px;
}

.pe-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(13, 110, 253, 0.09);
    overflow: hidden;
    border-top: 3px solid #0d6efd;
    transition: box-shadow 0.2s ease;
    height: 100%;
}

.pe-panel:hover {
    box-shadow: 0 4px 22px rgba(13, 110, 253, 0.16);
}

.pe-header {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    padding: 11px 15px;
    border-bottom: 1px solid #dde6ff;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.pe-header-inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pe-pin-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.32);
}

.pe-header-text {
    flex: 1;
    min-width: 0;
}

.pe-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a2433;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pe-date {
    font-size: 11px;
    color: #6c757d;
    margin-top: 3px;
}

.pe-date i {
    margin-right: 3px;
    opacity: 0.7;
}

.pe-admin-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #6c757d;
    background: none;
    border: none;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.pe-admin-trigger:hover,
.pe-admin-trigger.active {
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
}

.pe-action-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    min-width: 195px;
}

.pe-action-list li a {
    display: flex;
    align-items: center;
    padding: 7px 14px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.pe-action-list li a:hover {
    background: #f0f4ff;
    color: #0d6efd;
}

.pe-action-list li a.text-warning { color: #c97800 !important; }
.pe-action-list li a.text-warning:hover { background: #fff8ec; color: #c97800 !important; }
.pe-action-list li a.text-danger { color: #dc3545 !important; }
.pe-action-list li a.text-danger:hover { background: #fff5f5; color: #dc3545 !important; }
.pe-action-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }

.pe-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #6c757d;
    flex-shrink: 0;
    text-decoration: none !important;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
    margin-top: -1px;
}

.pe-toggle:hover {
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
}

.pe-chevron {
    font-size: 12px;
    display: block;
    transition: transform 0.25s ease;
}

.pe-toggle.collapsed .pe-chevron {
    transform: rotate(-180deg);
}

.pe-body {
    padding: 13px 15px 14px;
    font-size: 13px;
    color: #444;
    line-height: 1.75;
    overflow: hidden;
}

.pe-img {
    float: left;
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 7px;
    margin: 0 12px 8px 0;
    border: 1px solid #e0e8ff;
}

.pe-img-full {
    float: left;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 14px 10px 0;
    border: 1px solid #e0e8ff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.pe-clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.pe-full-content {
    font-size: 13px;
    color: #333;
    line-height: 1.78;
}

.pe-full-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 6px 0;
}

.pe-full-content p {
    margin: 0 0 4px;
}

.pe-full-content p:empty,
.pe-full-content p:has(> br:only-child) {
    margin: 0;
    line-height: 0;
    font-size: 0;
}

.pe-full-content ul,
.pe-full-content ol {
    padding-left: 20px;
    margin-bottom: 8px;
}

.pe-excerpt {
    margin: 0 0 8px;
}

.pe-read-more {
    font-size: 12px;
    font-weight: 700;
    color: #0d6efd !important;
    text-decoration: none !important;
    letter-spacing: .2px;
}

.pe-read-more:hover {
    text-decoration: underline !important;
}

.pe-read-more i {
    font-size: 10px;
}

@media (max-width: 991px) {
    .pe-title {
        white-space: normal;
    }

    .pe-bar .col-lg-6 {
        margin-bottom: 12px;
    }
}


/* ---------------------------------------------------------------------------
   Pinned Exam Schedule Bar  (.pex-*)
   --------------------------------------------------------------------------- */

.pex-bar {
    margin-bottom: 20px;
}

.pex-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(230, 126, 34, 0.10);
    overflow: hidden;
    border-top: 3px solid #e67e22;
}

.pex-header {
    background: linear-gradient(135deg, #fff8f0, #ffebd6);
    padding: 11px 15px;
    border-bottom: 1px solid #ffe0b2;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.pex-header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pex-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e67e22;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(230, 126, 34, 0.32);
}

.pex-header-text {
    flex: 1;
    min-width: 0;
}

.pex-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a2433;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pex-subtitle {
    font-size: 11px;
    color: #6c757d;
    margin-top: 2px;
}

.pex-view-link {
    font-size: 12px;
    font-weight: 700;
    color: #e67e22 !important;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.pex-view-link:hover {
    text-decoration: underline !important;
}

.pex-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #6c757d;
    flex-shrink: 0;
    text-decoration: none !important;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
    margin-top: -1px;
}

.pex-toggle:hover {
    background: rgba(230, 126, 34, 0.08);
    color: #e67e22;
}

.pex-chevron {
    font-size: 12px;
    display: block;
    transition: transform 0.25s ease;
}

.pex-toggle.collapsed .pex-chevron {
    transform: rotate(-180deg);
}

.pex-body {
    padding: 12px 15px 14px;
}

.pex-ward-label {
    font-weight: 700;
    font-size: 12px;
    color: #495057;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
    margin-bottom: 8px;
    margin-top: 6px;
}

.pex-table {
    font-size: 12px;
    margin-bottom: 8px;
}

.pex-table th {
    background: #fff8f0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
}

.pex-row--ongoing td {
    background: #f0fdf4;
    font-weight: 600;
}

.pex-row--paused td {
    background: #f8f9fa;
}

.pex-status {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
}

.pex-status--upcoming {
    background: #e8f4ff;
    color: #0d6efd;
}

.pex-status--ongoing {
    background: #dcfce7;
    color: #15803d;
}

.pex-status--paused {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.pex-status--written {
    background: #f1f5f9;
    color: #64748b;
}

.pex-read-more {
    font-size: 12px;
    font-weight: 700;
    color: #e67e22 !important;
    text-decoration: none !important;
    letter-spacing: .2px;
}

.pex-read-more:hover {
    text-decoration: underline !important;
}

@media (max-width: 767px) {
    .pex-title {
        white-space: normal;
    }

    .pex-table {
        font-size: 11px;
    }

    .pex-view-link {
        display: none;
    }
}


/* ---------------------------------------------------------------------------
   Quick Links Bar  (.dql-*)
   --------------------------------------------------------------------------- */

.dql-bar {
    margin-bottom: 16px;
}

.dql-scroll-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 2px 0 6px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.dql-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px 5px 8px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    text-decoration: none !important;
    color: #333 !important;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.15s ease, transform 0.1s ease;
    line-height: 1.3;
}

.dql-chip:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.13);
    transform: translateY(-1px);
    color: #333 !important;
}

.dql-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    flex-shrink: 0;
}

.dql-ext-icon {
    font-size: 9px;
    margin-left: 2px;
    opacity: 0.6;
}

.dql-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #888;
    margin-bottom: 6px;
    margin-left: 8px;
}
