﻿<style >
/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.45;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* CONTAINER max-width: 1200px; */
.container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 100%; /* or a specific value like 1400px */
    width: 100%;
    margin: 0 auto; /* Centers it if needed */
}


/* GREETING */
.dashboard-greeting {
    font-size: 1.25rem;
    font-weight: 600;
    color: black;
}
/* GREETING */
.greeting-message {
    font-size: 1rem;
    background-color: #d4edda;
    font-weight: 500;
    color: black;
}

/* TWO-COLUMN LAYOUT */
.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr; /* left is wider, right is narrower */
    gap: .5rem;
}

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* SECTION WRAPPER */
.dashboard-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    font-weight: 600;
}

.section-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    font-size: 1.2rem;
}

.section-link {
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    color: #0d6efd;
    transition: color 0.2s;
}

    .section-link:hover {
    }

.section-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* MY COURSES => up to 4 items in grid */
.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 15px;
    overflow-y: auto;
    max-height: 400px; /* Adjust height as needed */
    padding-right: 5px;
}

/*
.course-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.2s;
    height: 170px;
}

    .course-card:hover {
        background: #f7f7f7;
    }

.course-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.course-sub {
    font-size: 0.85rem;
}

.course-extra {
    font-size: 0.8rem;
}*/
/* TASKS => vertical list => see all link */
.tasks-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.task-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.2s;
}

    .task-item:hover {
        background: #f7f7f7;
    }

.task-title {
    font-weight: 600;
}

.task-detail {
    font-size: 0.85rem;
}
/* ASSIGNMENTS & DISCUSSIONS => fixed height to show ~4, then scroll */
.assign-scroll {
    max-height: 300px; /* Enough for about 4 items */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.assign-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.2s;
}

    .assign-item:hover {
        background: #f7f7f7;
    }

.assign-title {
    font-weight: 600;
}

.assign-detail {
    font-size: 0.85rem;
    margin-top: 3px; /* small gap before detail lines */
}

/* NEWLY ADDED COURSES => list */
.new-course-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.new-course-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.2s;
}

    .new-course-item:hover {
        background: #f7f7f7;
    }

.new-course-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.new-course-sub {
    font-size: 0.85rem;
}

.new-course-extra {
    font-size: 0.8rem;
}
.completed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.completed-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.2s;
}

    .completed-item:hover {
        background: #f7f7f7;
    }

.completed-title {
    font-weight: 600;
    color: #2a5d7d;
    font-size: 0.95rem;
}

.completed-stats {
    font-size: 0.85rem;
    color: #666;
}
/* PROFILE SUMMARY => Worksite, Role, Last Verified, icon-labeled link for verifying */
.profile-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.profile-line strong {
}

.profile-verify-link {
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px; /* for icon + text */
}

    .profile-verify-link:hover {
    }

.verify-icon {
    font-size: 1rem;
}
.actions-body {
      display: flex;
      flex-wrap: wrap; /* so buttons can wrap if screen is narrow */
      gap: 12px;
      padding: 16px;
      align-items: center;
    }
    .action-btn {
      background: #2a5d7d;
      color: #fff;
      border: none;
      border-radius: 4px;
      padding: 10px 14px;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: background 0.3s;
      white-space: nowrap;
    }
    .action-btn:hover {
      background: #1f4c60;
    }
/* NOTIFICATIONS => up to 5 items, scroll if more, fixed height */
.notifications-body {
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.notif-row {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.2s;
}

    .notif-row:hover {
        background: #f7f7f7;
    }

.notif-title {
    font-weight: 600;
}

.notif-sub {
    font-size: 0.85rem;
}

/* LAYOUT */
.communication-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.compose-col {
    flex: 2;
    min-width: 280px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    padding: 20px;
}

.history-col {
    flex: 1;
    min-width: 250px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    max-height: 550px;
}
.history-item.current {
    border-left: 4px solid #0d6efd;
}
#systemMessageTable_wrapper .dataTables_paginate {
    margin-right: 1rem;
}

.form-label {
    font-weight: 600;
}

.btn-group {
    margin-top: 20px;
    width: 50%;
    display: flex;
    gap: 15px;
}

/* CHECKBOX / OPTION ICON STYLES */
.form-check-label i {
    margin-right: 6px;
    color: #2a5d7d;
}

/* HISTORY LIST */
.history-list {
    margin-top: 15px;
}

.history-item {
    display: flex;
    margin:10px; 
    gap: 12px;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .2s;
    background: #fafafa;
}
.history-header {
    /*background: #eef6fb;*/
    padding: 12px 20px;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2a5d7d;
}
    .history-item:last-child {
        border-bottom: none;
    }

.history-icon {
    font-size: 1.3rem;
    color: #2a5d7d;
    flex-shrink: 0; /* ensures icon is not squashed */
}

.history-content {
    display: flex;
    flex-direction: column;
}

    .history-content h6 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
        font-weight: 600;
    }

    .history-content small {
        color: #666;
    }

.history-item:hover {
    background-color: #f7f7f7;
}
@media screen and (max-width: 768px) {
    .dashboard-content {
        grid-template-columns: 1fr; /* single column on small screens */
    }

    .course-list {
        grid-template-columns: 1fr; /* stack course cards */
    }
}


body {
    font-family: "Segoe UI",Tahoma,sans-serif;
    background: white;
    color: #333;
}


/* ── header ── */
.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px
}

.back-btn {
    border: none;
    background: #fff;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer
}

.page-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2a5d7d
}

/* ── warning banner ── */
.warning-message {
    display: flex;
    gap: 10px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    align-items:center;
    color: #000;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px
}

    .warning-message i {
        font-size: 1.4rem;
        margin-top: 4px
    }

.help-icon {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1060;
}
.help {

    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1060;
}
.help-internal-icon {
    position: relative;
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center !important;
}
.help-internal-icon .clock-history-icon:before {
    margin: 0px !important;
    vertical-align:unset !important;
}

    .help-icon span {
        font-size: 1.35rem;
    }
/* ── layout ── */
.communication-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px
}

.compose-col {
    flex: 2;
    min-width: 280px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
    padding: 20px
}

.history-col {
    flex: 1;
    min-width: 250px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.form-label {
    font-weight: 600
}

.btn-group {
    margin-top: 20px;
    width: 50%;
    display: flex;
    gap: 15px
}

.form-check-label i {
    margin-right: 6px;
    color: #2a5d7d
}

/* ── live counter ── */
.limit-reached {
    color: #dc3545 !important;
    /*font-weight: 600*/
}
@media (min-width: 768px) { /* md and up */
    .custom-width-md-lg {
        width: 300px;
    }

    .custom-width-md-lg2 {
        width: 225px;
    }

    .custom-width-md-lg3 {
        width: 150px;
    }
}
/* ── history header + list (system-message style) ── */
./*history-header {
    background: #eef6fb;
    padding: 12px 20px;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2a5d7d
}*/

.history-list {
    height: 360px;
    overflow-y: auto;
    padding: 10px 20px
}

.history-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-bottom: 1px solid #eee !important;
    padding: 10px 0;
    cursor: pointer;
    transition: background-color .2s
}

    .history-item:hover {
        background: #f7f7f7
    }

    .history-item:last-child {
        border-bottom: none
    }

.history-icon {
    font-size: 1.3rem;
    color: #2a5d7d;
    flex-shrink: 0
}

.history-content h6 {
    font-size: 1rem;
    margin-bottom: .25rem;
    font-weight: 600
}

.history-content small {
    color: #666
}

/* ── pagination ── */
.hist-pagination {
    border-top: 1px solid #ddd;
    padding: 10px 20px;
    display: none;
    justify-content: flex-end
}

/* responsive */
@media(max-width:768px) {
    .communication-container {
        flex-direction: column
    }
}


/*Announcement
*/
:root {
    --aa-blue: #0d6efd;
    --aa-green: #198754;
    --aa-red: #dc3545;
    --aa-amber: #ffc107;
}

/* header */
.announce-header {
    gap: .75rem
}

    .announce-header .title-group h1 {
        margin: 0
    }

.type-filter {
    min-width: 180px;
    width: auto;
    margin-left: auto;
}

.search-wrap {
    flex: 0 0 500px;
}

    .search-wrap .input-group {
        flex: 1
    }

@media (max-width:576px) {
    .search-wrap {
        flex: 1 0 100%
    }
}


/*//enrollment cards*/
.enrollment-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.avatar-circle {
    background: #eef0f3;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #495057;
}

.badge-green-gray {
    background: #e5f9ec;
    color: #23b26e;
    border-radius: 20px;
    padding: 0.3em 1em;
    font-size: 0.95em;
    font-weight: 500;
}
}