* {
    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: #f8fafc;
    color: #2d3748;
    line-height: 1.6;
}

.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-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 32px;
}

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

.subtitle {
    color: #718096;
    font-size: 16px;
    margin: 0;
}

.login-tabs {
    display: flex;
    background: #f7fafc;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #718096;
}

.tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #a0aec0;
    font-size: 16px;
    z-index: 2;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

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

.input-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
    cursor: pointer;
}

.input-wrapper select:hover {
    border-color: #cbd5e0;
}

.input-wrapper select option {
    padding: 10px;
    background: white;
    color: #2d3748;
    font-size: 14px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #667eea;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #718096;
}

.checkbox-label input {
    margin-right: 8px;
}

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

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

.login-btn:disabled,
.register-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

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

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
    color: white;
    transition: width 0.3s ease;
    overflow: hidden;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

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

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.2) 0%, transparent 100%);
    border-left-color: #667eea;
    color: white;
}

.nav-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

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

.header {
    height: 70px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #4a5568;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #f7fafc;
    color: #667eea;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

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

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.user-menu:hover {
    background: #f7fafc;
}

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

.user-name {
    font-weight: 500;
    color: #2d3748;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f7fafc;
    cursor: pointer;
}

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

.dropdown-item:hover {
    background: #f7fafc;
    color: #667eea;
}

.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: #f8fafc;
}

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

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

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f7fafc;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

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

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

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

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

.stat-info h3 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 5px 0;
}

.stat-info p {
    color: #718096;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.recent-exams,
.available-exams {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f7fafc;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f7fafc;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.view-all {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.view-all:hover {
    color: #5a67d8;
}

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

.exam-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.exam-item:hover {
    background: #edf2f7;
}

.exam-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 5px 0;
}

.exam-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #718096;
}

.exam-score {
    font-size: 18px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    color: white;
}

.exam-score.pass {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.exam-score.fail {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.exam-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f7fafc;
    transition: all 0.3s ease;
}

.exam-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
}

.exam-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.exam-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    flex: 1;
}

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

.exam-details {
    margin-bottom: 15px;
}

.exam-details p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    font-size: 14px;
    color: #718096;
}

.start-exam-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.page-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 10px 0;
}

.page-header p {
    color: #718096;
    font-size: 16px;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
    font-size: 16px;
    background: #f8fafc;
}

.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #e53e3e;
    font-size: 16px;
    background: #fff5f5;
    border-radius: 12px;
}

.modal {
    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;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #718096;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.exam-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.summary-item {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 14px;
    color: #718096;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

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

.questions-list h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #2d3748;
}

.question-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.question-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.question-item.correct {
    border-color: #48bb78;
}

.question-item.wrong {
    border-color: #f56565;
}

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

.question-number {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.question-type {
    background: #e2e8f0;
    color: #4a5568;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.question-score {
    background: #f6e05e;
    color: #975a16;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

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

.question-status.correct {
    background: #c6f6d5;
    color: #22543d;
}

.question-status.wrong {
    background: #fed7d7;
    color: #742a2a;
}

.question-content {
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 16px;
    line-height: 1.6;
}

.question-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-item {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.answer-label {
    font-weight: 600;
    color: #4a5568;
    min-width: 80px;
}

.answer-content {
    color: #2d3748;
    flex: 1;
    word-break: break-word;
}

.answer-item.correct {
    color: #2f855a;
}

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

.wrong-question-item {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f7fafc;
    transition: all 0.3s ease;
}

.wrong-question-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

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

.question-type {
    background: #edf2f7;
    color: #4a5568;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-difficulty {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-difficulty.easy {
    background: #c6f6d5;
    color: #22543d;
}

.question-difficulty.medium {
    background: #feebc8;
    color: #744210;
}

.question-difficulty.hard {
    background: #fed7d7;
    color: #742a2a;
}

.question-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.question-score {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.question-date {
    font-size: 14px;
    color: #718096;
}

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

.question-content h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.question-content .subject {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #718096;
}

.question-content .content {
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.question-answers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.answer-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.answer-label {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.answer-item.correct .answer-label {
    color: #48bb78;
}

.answer-item.wrong .answer-label {
    color: #f56565;
}

.answer-content {
    background: #f7fafc;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}

.answer-item.correct .answer-content {
    background: #f0fff4;
    border-color: #48bb78;
}

.answer-item.wrong .answer-content {
    background: #fff5f5;
    border-color: #f56565;
}

.record-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.action-link {
    color: #667eea;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 2000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease;
}

.message-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.message-error {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.message-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

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

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

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

.record-item {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f7fafc;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.record-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #f7fafc;
    padding-bottom: 15px;
}

.record-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.record-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #718096;
}

.record-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.record-score-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.record-score-value.pass {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.record-score-value.fail {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.record-status {
    font-size: 14px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
}

.record-status.pass {
    background: rgba(72, 187, 120, 0.1);
    color: #38a169;
}

.record-status.fail {
    background: rgba(245, 101, 101, 0.1);
    color: #e53e3e;
}

.record-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding-top: 15px;
}

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

.record-detail-item label {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.record-detail-item span {
    font-size: 16px;
    color: #2d3748;
}

.hidden {
    display: none !important;
}


.message-notification {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.message-notification:hover {
    background: #f7fafc;
}

.notification-icon {
    font-size: 24px;
}

.notification-badge,
.message-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #f56565;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.message-badge {
    top: -5px;
    right: -5px;
}

.message-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #718096;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.filter-tab:hover {
    background: #e2e8f0;
}

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

.message-actions {
    display: flex;
    gap: 10px;
}

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

.message-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid transparent;
}

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

.message-item.unread {
    border-left-color: #667eea;
    background: linear-gradient(to right, rgba(102, 126, 234, 0.05), white);
}

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

.message-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.message-time {
    font-size: 14px;
    color: #a0aec0;
}

.message-sender {
    font-size: 14px;
    color: #718096;
    margin-bottom: 8px;
}

.message-preview {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 10px;
}

.message-status {
    display: flex;
    justify-content: flex-end;
}

.status-read,
.status-unread {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.status-read {
    background: #e6fffa;
    color: #38b2ac;
}

.status-unread {
    background: #fef5e7;
    color: #f59e0b;
}

.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;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-dialog {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #2d3748;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #a0aec0;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f7fafc;
    color: #667eea;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.message-detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.info-item label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.info-item span {
    color: #2d3748;
    font-size: 15px;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-content label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.content-text {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    color: #2d3748;
    line-height: 1.8;
    white-space: pre-wrap;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}
