* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

.page {
    padding: 20px;
}

.menu-item.active {
    background: #007bff;
    color: white;
}

.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.login-form {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 50px 40px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.title-container {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    font-size: 32px;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-subtitle {
    color: #7f8c8d;
    font-size: 16px;
    font-weight: 400;
}

.form-group,
.form-group-sp {
    margin-bottom: 24px;
}

.input-container {
    position: relative;
}

.input-container input {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    font-size: 16px;
    padding-left: 50px;
    padding-right: 50px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.input-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.show-pwd {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #7f8c8d;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.show-pwd:hover {
    color: #667eea;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #7f8c8d;
    position: relative;
    padding-left: 25px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input~.checkmark {
    background-color: #f5f7fa;
}

.checkbox-container input:checked~.checkmark {
    background-color: #667eea;
    border-color: #667eea;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    margin-left: 8px;
    user-select: none;
}

.login-button {
    width: 100%;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.login-footer a:hover {
    text-decoration: underline;
}

.account-foot-copyright {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.app-wrapper {
    display: flex;
    height: 100vh;
    background: #f5f7fa;
}

.sidebar-container {
    width: 260px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    transition: width 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar-logo {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-logo h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 0 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-logo .logo-icon {
    color: #667eea;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sidebar-menu {
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.menu-item,
.menu-title {
    height: 56px;
    line-height: 56px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.menu-item:hover,
.menu-title:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.menu-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    position: relative;
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #fff;
}

.menu-icon {
    margin-right: 12px;
    font-size: 18px;
    width: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.menu-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-group .menu-title {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.menu-group .menu-title::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform 0.3s ease;
}

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

.menu-group .menu-item {
    padding-left: 40px;
    font-size: 14px;
    max-height: 56px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
}

.menu-group.collapsed .menu-item {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.navbar {
    height: 64px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid #f0f0f0;
}

.hamburger-container {
    cursor: pointer;
    font-size: 20px;
    color: #5a5e66;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    line-height: 1;
}

.hamburger-container:hover {
    background: #f5f7fa;
    color: #667eea;
}

.navbar-breadcrumb {
    flex: 1;
    margin-left: 20px;
    color: #2c3e50;
    font-weight: 500;
}

.right-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-dropdown {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s;
    color: #2c3e50;
    position: relative;
}

.user-dropdown:hover {
    background: #f5f7fa;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    line-height: 1;
    font-size: 14px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    z-index: 1000;
    display: none;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f5f7fa;
}

.app-main {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: #f5f7fa;
}

.dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.dashboard-subtitle {
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 32px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stats-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stats-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stats-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
    font-weight: normal;
}

.stats-icon.users {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-icon.exams {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stats-icon.questions {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stats-icon.subjects {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stats-info {
    flex: 1;
}

.stats-info h3 {
    font-size: 28px;
    color: #2c3e50;
    margin: 0 0 4px 0;
    font-weight: 700;
}

.stats-info p {
    color: #7f8c8d;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.stats-trend {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 8px;
    display: inline-block;
}

.stats-trend.up {
    background: #f0f9ff;
    color: #10b981;
}

.hidden {
    display: none !important;
}

.sidebar-container.collapsed {
    width: 0;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

.sidebar-container.collapsed .menu-item span,
.sidebar-container.collapsed .menu-title span {
    display: none;
}

.sidebar-container.collapsed .sidebar-logo h2 {
    display: none;
}

.development-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

.coming-soon {
    text-align: center;
    padding: 60px 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    margin: 0 auto;
}

.coming-soon-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.coming-soon h2 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 28px;
    font-weight: 600;
}

.coming-soon p {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.page-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.page-header-subtitle {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 4px;
}

.page-header-actions {
    display: flex;
    gap: 12px;
}

.admin-info-card {
    margin-top: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.alert {
    padding: 20px 24px;
    border: none;
    border-radius: 12px;
}

.alert-info {
    background: #f0f9ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e40af;
}

.alert ul {
    margin: 12px 0;
    padding-left: 20px;
}

.alert li {
    margin: 8px 0;
    line-height: 1.6;
}

.alert strong {
    color: #1e40af;
}

.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    z-index: 2000;
    animation: slideInRight 0.3s ease;
}

.message-success {
    background: #10b981;
}

.message-error {
    background: #ef4444;
}

.message-info {
    background: #3b82f6;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

select {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #2c3e50;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 4px 12px rgba(102, 126, 234, 0.15);
    background-color: #fff;
    transform: translateY(-1px);
}

select:hover:not(:disabled) {
    border-color: #667eea;
    background-color: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f7fa;
    box-shadow: none;
}

select[multiple] {
    height: auto;
    min-height: 150px;
    padding: 8px;
    background-image: none;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    min-width: 200px;
    z-index: 1000;
    display: none;
    overflow: hidden;
    transform-origin: top right;
}

.user-dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    display: block;
    animation: dropdownSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(4px) scale(1);
    }
}

.dropdown-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-left: 24px;
    box-shadow: inset 4px 0 0 rgba(255, 255, 255, 0.3);
}

.dropdown-item:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.dropdown-item span:first-child {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.log-filters select,
.user-filters select {
    border-radius: 6px;
    border-color: #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.log-filters select:focus,
.user-filters select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-group select {
    margin-bottom: 20px;
}

.log-filters select,
.user-filters select {
    min-width: 200px;
    flex: 1;
}

.message-send-form {
    max-width: 800px;
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-send-form .form-group {
    margin-bottom: 20px;
}

.message-send-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.message-send-form input,
.message-send-form select,
.message-send-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.message-send-form input:focus,
.message-send-form select:focus,
.message-send-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.message-send-form select[multiple] {
    height: 120px;
}

.form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
}

.log-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.log-filters input,
.log-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.log-filters input:focus,
.log-filters select:focus {
    outline: none;
    border-color: #667eea;
}

.answer-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-item {
    flex: 1;
}

.info-item label {
    font-weight: 600;
    color: #495057;
}

.info-item .score {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
}

.answer-details h4 {
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.question-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.question-header {
    background: #f8f9fa;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.question-number {
    font-weight: 600;
    color: #495057;
}

.question-score {
    color: #6c757d;
    font-size: 14px;
}

.question-content {
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.answer-content {
    padding: 15px 20px;
    background: #fafbfc;
}

.student-answer,
.correct-answer {
    margin-bottom: 10px;
}

.student-answer label,
.correct-answer label {
    display: inline-block;
    width: 80px;
    font-weight: 600;
    color: #495057;
}

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

.result-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.result-tag.correct {
    background: #d4edda;
    color: #155724;
}

.result-tag.incorrect {
    background: #f8d7da;
    color: #721c24;
}

.user-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-filters input,
.user-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.user-filters input:focus,
.user-filters select:focus {
    outline: none;
    border-color: #667eea;
}

.data-table {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 24px;
}

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

.data-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.data-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.5px;
    border: none;
}

.data-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody td {
    padding: 16px 20px;
    color: #2c3e50;
    vertical-align: middle;
    border: none;
}

.data-table tbody td:first-child {
    font-weight: 600;
    color: #667eea;
}

.status-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-tag.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.status-tag.inactive {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.user-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 50px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn:not(.btn-primary):not(.btn-danger) {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
}

.btn:not(.btn-primary):not(.btn-danger):hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.question-content {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-center {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-dialog {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.modal-dialog.modal-lg {
    max-width: 800px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.form-group,
.form-group-sp {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.data-table tbody tr {
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.data-table tbody tr:nth-child(1) {
    animation-delay: 0.1s;
}

.data-table tbody tr:nth-child(2) {
    animation-delay: 0.2s;
}

.data-table tbody tr:nth-child(3) {
    animation-delay: 0.3s;
}

.data-table tbody tr:nth-child(4) {
    animation-delay: 0.4s;
}

.data-table tbody tr:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-xl {
    max-width: 1200px;
}

.paper-form-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    max-height: 70vh;
}

.paper-basic-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.paper-basic-info h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.paper-questions-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.paper-questions-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.question-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #e3f2fd;
    border-radius: 6px;
}

.selection-info {
    font-size: 14px;
    color: #1976d2;
    font-weight: 500;
}

.selection-actions {
    display: flex;
    gap: 8px;
}

.question-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.question-filters select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.question-list {
    flex: 1;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
}

.no-questions {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.question-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.question-item:hover {
    background: #f8f9fa;
}

.question-item:last-child {
    border-bottom: none;
}

.question-checkbox {
    margin-right: 12px;
    margin-top: 2px;
}

.question-checkbox input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

.question-info {
    flex: 1;
}

.question-header {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    align-items: center;
}

.question-type {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.question-difficulty {
    background: #f8f9fa;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid #dee2e6;
}

.question-score {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.question-content {
    font-size: 13px;
    color: #495057;
    line-height: 1.4;
}

.analysis-filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

#examPaperSelect {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.analysis-results {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.analysis-summary {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.analysis-summary h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
}

.analysis-section {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.analysis-section:last-child {
    border-bottom: none;
}

.analysis-section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

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

.ranking-table th,
.ranking-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ranking-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.rank-badge {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: #6c757d;
    color: white;
    font-weight: bold;
}

.rank-badge.top-rank {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.score-cell {
    font-weight: bold;
    color: #007bff;
}

.question-analysis {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.question-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background: #fafafa;
}

.question-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.question-title {
    font-weight: bold;
    color: #2c3e50;
}

.question-type {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.question-score {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.question-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-bar {
    position: relative;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
}

.stat-text {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.question-details {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #6c757d;
}

.score-distribution {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.distribution-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.score-range {
    min-width: 80px;
    font-weight: bold;
    color: #2c3e50;
}

.distribution-bar {
    flex: 1;
    position: relative;
    height: 25px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.distribution-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
}

.distribution-text {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.manual-grade-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.manual-grade-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.grade-question {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fafafa;
}

.grade-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.grade-question-content {
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}

.grade-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.answer-section {
    padding: 10px;
    border-radius: 4px;
}

.student-answer {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.correct-answer {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.answer-section h5 {
    margin-bottom: 8px;
    font-size: 14px;
}

.grade-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.grade-input {
    width: 80px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.grade-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.analysis-tabs {
    margin-bottom: 30px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #495057;
}

.tab-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.tab-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.analysis-tab-content {
    margin-top: 20px;
}

.analysis-summary {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.analysis-summary h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
}

.analysis-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.analysis-section h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
}

.score-distribution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.score-item {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid;
}

.score-item.excellent {
    background: #d4edda;
    border-left-color: #28a745;
}

.score-item.good {
    background: #cce5ff;
    border-left-color: #007bff;
}

.score-item.average {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.score-item.pass {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.score-item.fail {
    background: #f5c6cb;
    border-left-color: #721c24;
}

.score-label {
    font-size: 14px;
    color: #495057;
    margin-bottom: 5px;
}

.score-count {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.trend-chart {
    display: flex;
    align-items: end;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 150px;
}

.trend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.trend-date {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 10px;
}

.trend-bar {
    width: 30px;
    background: #007bff;
    border-radius: 4px 4px 0 0;
    margin-bottom: 5px;
    min-height: 5px;
}

.trend-count {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
}

.rank-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    background: #e9ecef;
    color: #495057;
}

.rank-badge.top-rank {
    background: #ffd700;
    color: #856404;
}

.loading-placeholder,
.error-message {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

.error-message {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}

.answer-summary {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.summary-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

.summary-item label {
    font-weight: 600;
    color: #495057;
    margin-right: 8px;
    min-width: 80px;
}

.summary-item .score-display {
    font-weight: bold;
    color: #007bff;
    font-size: 16px;
}

.answer-details {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.answer-details h4 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.questions-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-detail-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.question-detail-item.correct {
    border-left: 4px solid #28a745;
    background: #f8fff9;
}

.question-detail-item.incorrect {
    border-left: 4px solid #dc3545;
    background: #fff8f8;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

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

.question-number {
    font-weight: bold;
    color: #007bff;
    background: white;
}

.modal-xl {
    max-width: 1200px;
    width: 95%;
}

.answer-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #007bff;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.summary-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.summary-item label {
    font-weight: 600;
    color: #495057;
    min-width: 100px;
    margin-right: 10px;
}

.summary-item span {
    color: #2c3e50;
}

.score-display {
    font-size: 18px;
    font-weight: bold;
    color: #007bff !important;
}

.status-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-tag.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-tag.completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.answer-details {
    margin-top: 25px;
}

.answer-details h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.questions-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-detail-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.question-detail-item.correct {
    border-left: 4px solid #28a745;
}

.question-detail-item.incorrect {
    border-left: 4px solid #dc3545;
}

.question-header {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
}

.question-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.question-number {
    font-weight: bold;
    color: #007bff;
    font-size: 16px;
}

.question-type,
.question-difficulty,
.question-subject {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.question-type {
    background: #e3f2fd;
    color: #1976d2;
}

.question-difficulty {
    background: #fff3e0;
    color: #f57c00;
}

.question-subject {
    background: #f3e5f5;
    color: #7b1fa2;
}

.question-score {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
}

.score-earned {
    color: #007bff;
    font-size: 18px;
}

.score-separator {
    margin: 0 5px;
    color: #6c757d;
}

.score-total {
    color: #6c757d;
}

.question-content {
    padding: 20px;
}

.content-section {
    margin-bottom: 20px;
}

.content-section label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.question-text {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #007bff;
    line-height: 1.6;
    color: #2c3e50;
}

.answer-section {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.answer-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.student-answer,
.correct-answer {
    display: flex;
    flex-direction: column;
}

.student-answer label,
.correct-answer label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.answer-text {
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.answer-text.correct {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.answer-text.incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.answer-result {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.result-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.result-badge.correct {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-badge.incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

.grade-input {
    width: 80px;
    padding: 5px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.grade-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.manual-grade-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.manual-grade-section label {
    font-weight: 600;
    color: #856404;
    margin-bottom: 8px;
    display: block;
}

.grade-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.grade-controls span {
    color: #856404;
    font-size: 14px;
}

.grade-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.info-item span {
    font-size: 16px;
    font-weight: bold;
}

.grade-questions {
    margin-bottom: 30px;
}

.grade-questions h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.grade-question-item {
    background: white;
    border: 2px solid #ffc107;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.grade-question-item .question-header {
    background: #fff3cd;
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid #ffeaa7;
}

.grade-question-item .question-content {
    padding: 20px;
}

.score-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-input-field {
    width: 100px;
    padding: 8px 12px;
    border: 2px solid #007bff;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.score-input-field:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.score-max {
    font-size: 14px;
    color: #6c757d;
    font-weight: 600;
}

.no-manual-grade {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    margin-bottom: 30px;
}

.no-manual-grade p {
    color: #6c757d;
    font-size: 16px;
    margin: 10px 0;
}

.no-manual-grade p:first-child {
    font-weight: 600;
    color: #495057;
}

.all-questions-summary {
    margin-top: 30px;
}

.all-questions-summary h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.question-summary-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.question-summary-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-summary-item.correct {
    border-left: 4px solid #28a745;
}

.question-summary-item.incorrect {
    border-left: 4px solid #dc3545;
}

.summary-header {
    background: #f8f9fa;
    padding: 12px 15px;
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.question-status {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.question-status.correct {
    background: #d4edda;
    color: #155724;
}

.question-status.incorrect {
    background: #f8d7da;
    color: #721c24;
}

.summary-content {
    padding: 15px;
}

.answer-comparison {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.student-answer-summary,
.correct-answer-summary {
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.student-answer-summary {
    background: #f8f9fa;
    border-left: 3px solid #007bff;
}

.correct-answer-summary {
    background: #d4edda;
    border-left: 3px solid #28a745;
}

.student-answer-summary strong,
.correct-answer-summary strong {
    display: inline-block;
    min-width: 80px;
    color: #495057;
}

.form-control {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
