:root {
    --lms-blue: #337ab7;
    --lms-blue-hover: #23527c;
    --sidebar-bg: #f8f8f8;
    --sidebar-border: #e7e7e7;
    --text-color: #333;
    --text-muted: #777;
    --white: #ffffff;
    --active-green: #5cb85c;
    --withdrawn-yellow: #f0ad4e;
    --active-red: #d9534f;
    --orange-highlight: #ff8c00;
    --quiz-blue: #3c8dbc;
    --assign-teal: #39cccc;
    --mid-dark: #2c3e50;
    --lab-green: #00a65a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; /* Simpler font */
}

body {
    background-color: #ffffff;
    color: var(--text-color);
    line-height: 1.42857143;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling - flatter and simpler */
.sidebar {
    width: 190px; /* Thinner sidebar as in screenshot */
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 10px;
    border-bottom: 0;
    text-align: center;
}

.logo-placeholder {
    display: block;
    font-weight: 300;
    color: var(--lms-blue);
    font-size: 1.1rem;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    border-top: 1px solid #fff;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-nav li.active a {
    background-color: #ffffff;
    color: var(--lms-blue);
    position: relative;
    border-right: 0;
    width: calc(100% + 1px);
    z-index: 2;
}

.sidebar-nav li a:hover {
    background-color: #eee;
}

.sidebar-nav li i {
    width: 16px;
    margin-right: 5px;
    font-size: 14px;
}

/* Main Content Area */
.main-content {
    margin-left: 190px;
    flex: 1;
    padding-bottom: 50px;
    background-color: #fff;
}

.top-header {
    background-color: #438eb9; /* Specifically chosen blue */
    color: var(--white);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb-container {
    background-color: #f5f5f5;
    padding: 8px 15px;
    border-bottom: 1px dotted #e5e5e5;
    font-size: 13px;
}

.breadcrumb {
    color: #555;
}

.breadcrumb i {
    color: #999;
    margin: 0 4px;
}

.user-info {
    font-size: 12px;
    cursor: pointer;
}

.user-info img {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    vertical-align: middle;
}

/* Content Sections */
.content-section {
    padding: 20px 15px;
}

.view-header {
    border-bottom: 1px dotted #e2e2e2;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.view-header h2 {
    font-size: 21px;
    font-weight: 400;
    color: #438eb9;
}

.back-link {
    cursor: pointer;
}

.btn-primary {
    background-color: #82af6f !important; /* Authentic green */
    color: white;
    border: none;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
}

/* Table Style matching Screenshot */
.table-container {
    border: 1px solid #ddd;
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background-color: #f8f8f8;
    color: #707070;
    font-size: 13px;
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.data-table td {
    padding: 8px;
    border: 1px solid #ddd;
    font-size: 13px;
}

.status-badge {
    display: inline-block;
    padding: 4px 6px;
    font-size: 11px;
    line-height: 1;
    border: 1px solid;
    border-radius: 0;
}

.status-badge.active { border-color: #d15b47; color: #d15b47; }
.status-badge.withdrawn { border-color: #ffb752; color: #ffb752; }

/* Assessment View specific - flat and simple */
.info-grid {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.info-grid td {
    border: 1px solid #f1f1f1;
    padding: 8px;
    font-size: 13px;
}

.highlight-orange { color: var(--orange-highlight); }

.assessment-table {
    width: 100%;
    border-collapse: collapse;
}

.assessment-table th {
    border-bottom: 1px solid #ddd;
    padding: 8px;
    font-size: 13px;
}

.assessment-table td {
    padding: 6px;
    font-size: 12px;
    border-bottom: 1px solid #eee;
}

/* Badges - very specific shapes from screenshots */
.badge {
    border-radius: 0;
    font-weight: normal;
    font-size: 11px;
    padding: 2px 6px;
    margin-right: 2px;
}

.badge-quiz { background-color: #3a87ad; color: white; }
.badge-assign { background-color: #82af6f; color: white; }
.badge-lab { background-color: #abbac3; color: white; } /* Greyish as in OS Lab screenshot */
.badge-mid { background-color: #3a87ad; color: white; }
.badge-om { background-color: #82af6f; color: white; position: relative; padding-right: 15px;}
.badge-om::after { content: ''; position: absolute; right: 0; top: 0; border: 8px solid transparent; border-left-color: #82af6f; }
.badge-weight { background-color: #d15b47; color: white; position: relative; padding-right: 15px;}
.badge-weight::after { content: ''; position: absolute; right: 0; top: 0; border: 8px solid transparent; border-left-color: #d15b47; }

.bg-total { background-color: #f9f9f9; font-weight: bold; }
.bg-grand { background-color: #f5f5f5; font-weight: bold; border-top: 2px solid #ddd; }

.action-dropdown .btn-action {
    background-color: #428bca;
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border: 0;
}

.dropdown-menu {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ddd;
}

#instructions-box {
    font-size: 12px;
    color: #444;
    padding: 10px;
}

.session-header {
    background-color: #ffb752;
    color: white;
    padding: 6px 12px;
    font-size: 14px;
}

/* Transcript Specific Styles */
#transcript-view {
    background-color: #fff;
    padding: 30px;
    color: #333;
}

.transcript-header p {
    margin-bottom: 5px;
    line-height: 1.2;
}

.semester-box {
    margin-bottom: 30px;
}

.semester-box h4 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    padding-bottom: 3px;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.data-table tfoot td {
    border-top: 1px solid #333;
    padding: 5px;
}

/* Applications Dialogue Styles */
.badge-rejected { background-color: #d15b47 !important; }
.badge-implemented { background-color: #82af6f !important; }

.text-truncate {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dialogue-container {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    margin-top: 20px;
}

#dialogue-subject {
    font-weight: bold;
    font-size: 14px;
    border-bottom: 2px solid #337ab7;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #337ab7;
}

.message-box {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e5e5e5;
    background-color: #fcfcfc;
    border-left: 5px solid #dcdcdc;
    position: relative;
    border-radius: 0;
}

.message-box.official {
    border-left: 5px solid #3a87ad;
    background-color: #f0f7fa;
}

.message-box.student {
    border-left: 5px solid #82af6f;
    background-color: #f3f8f1;
}

.message-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 12px;
}

.message-header strong {
    color: #333;
}

.message-body {
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    color: #444;
}

.message-date {
    float: right;
    color: #999;
    font-weight: normal;
}
