/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.hidden {
    display: none !important;
}

.container {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #f0f2f5;
    padding: 20px;
    height: 100vh;
    border-right: 1px solid #e9ecef;
}

.logo {
    margin-bottom: 20px;
}

.logo a {
    font-weight: bold;
    font-size: 24px;
    text-decoration: none;
    color: #000;
}

.admin-title {
    display: block;
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.menu-group {
    margin-bottom: 10px;
}

.menu-group-title {
    display: block;
    padding: 10px 15px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    position: relative;
}

.menu-group-title.active {
    background-color: #e0e5eb;
}

.menu-group-title::after {
    content: '\25B6'; /* Right-pointing triangle */
    font-size: 12px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s;
}

.menu-group-title.open::after {
    transform: translateY(-50%) rotate(90deg);
}

.submenu {
    padding-left: 15px;
    display: none; /* Initially hide submenu */
}

.submenu.open {
    display: block;
}

.submenu li a {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    color: #555;
    border-radius: 5px;
}

.submenu li a.active {
    background-color: #e9ecef;
    font-weight: bold;
    color: #000;
}

/* Grade Styles */
.grade {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    min-width: 20px;
}

.grade-s { background-color: #ff4d4f; } /* Red */
.grade-a { background-color: #ffc107; } /* Amber */
.grade-b { background-color: #4caf50; } /* Green */
.grade-c { background-color: #9e9e9e; } /* Grey */


/* Content */
.content {
    flex-grow: 1;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-left h1 {
    font-size: 24px;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info img {
    border-radius: 50%;
}

/* Page Sections */
.page-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.list-header {
    margin-bottom: 20px;
}

.list-header h2 {
    font-size: 18px;
}

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

.list-table th, .list-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #e9ecef;
    vertical-align: middle;
}

.list-table thead {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* Email Form */
.email-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.email-form-container h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-control-file {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

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


/* Contract Page */
.contract-info-container h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.contract-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.contract-table th, .contract-table td {
    padding: 15px;
    border: 1px solid #e9ecef;
    text-align: left;
}

.contract-table th {
    width: 150px;
    background-color: #f8f9fa;
    font-weight: bold;
}

.contract-table p {
    margin: 0 0 10px 0;
}

.contract-table p:last-child {
    margin-bottom: 0;
}

.contract-table em {
    color: #007bff;
    font-style: normal;
}

.btn-download {
    background-color: #ffeb3b; /* Yellow */
    color: #333;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
}

/* Dashboard */
.dashboard-container { display: flex; flex-direction: column; gap: 20px; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; }
.dashboard-header h3 { margin: 0; font-size: 18px; }
.dashboard-filters { display: flex; gap: 10px; }
.dashboard-filters select { padding: 8px; border: 1px solid #ccc; border-radius: 5px; }
.dashboard-main { display: flex; gap: 20px; }
.chart-container { flex-grow: 1; border: 1px solid #e9ecef; padding: 20px; border-radius: 5px; }
.contract-status-container { width: 300px; border: 1px solid #e9ecef; padding: 20px; border-radius: 5px; }
.contract-status-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.contract-status-header h4 { margin: 0; font-size: 16px; }
.contract-status-header a { font-size: 14px; color: #007bff; text-decoration: none; }
.contract-status-body table { width: 100%; border-collapse: collapse; }
.contract-status-body th, .contract-status-body td { padding: 10px; border: 1px solid #e9ecef; text-align: left; }
.campaign-list-container { border: 1px solid #e9ecef; padding: 20px; border-radius: 5px; }
.campaign-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.campaign-list-header h3 { margin: 0; font-size: 18px; }
.date-picker { font-size: 14px; }
.campaign-table { width: 100%; border-collapse: collapse; }
.campaign-table th, .campaign-table td { padding: 12px; border: 1px solid #e9ecef; text-align: center; font-size: 14px; }
.campaign-table thead { background-color: #f8f9fa; }
.status-chip { background-color: #e9ecef; padding: 5px 10px; border-radius: 15px; font-size: 12px; }
.pagination { display: flex; justify-content: center; margin-top: 20px; gap: 5px; }
.pagination button { padding: 5px 10px; border: 1px solid #ccc; background-color: #fff; cursor: pointer; }
.pagination button.active { background-color: #007bff; color: #fff; border-color: #007bff; }