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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
    -webkit-overflow-scrolling: touch;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .title {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
    text-align: center;
}

.header .btn {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    min-width: 50px;
}

.content {
    padding-top: 54px;
    padding-bottom: 70px;
    min-height: 100vh;
}

.card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

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

.card .card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.card .card-link {
    font-size: 12px;
    color: #667eea;
    text-decoration: none;
}

.card .card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

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

.btn-primary:active {
    opacity: 0.9;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-danger {
    background: #ff4757;
    color: #fff;
}

.btn-block {
    width: 100%;
}

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

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

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

.form-group input.error {
    border-color: #ff4757;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-primary {
    background: #cce5ff;
    color: #004085;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

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

.text-muted {
    color: #999;
    font-size: 12px;
}

.text-primary {
    color: #667eea;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

.mt-2 { margin-top: 10px; }
.mt-4 { margin-top: 20px; }
.mb-2 { margin-bottom: 10px; }
.mb-4 { margin-bottom: 20px; }

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -1px 5px rgba(0,0,0,0.05);
    padding-bottom: env(safe-area-inset-bottom);
}

.footer a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.footer a.active {
    color: #667eea;
}

.footer a .icon {
    font-size: 16px;
    margin-bottom: 2px;
}

.footer a .text {
    font-size: 9px;
}

.unread-badge {
    position: absolute;
    top: 5px;
    right: 50%;
    transform: translateX(15px);
    min-width: 16px;
    height: 16px;
    background: #ff4757;
    color: #fff;
    border-radius: 8px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

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

.avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 24px;
    margin: 0 auto 10px;
}

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

.login-container {
    width: 90%;
    max-width: 360px;
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.login-header h1 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}

.login-header p {
    color: #999;
    font-size: 13px;
}

.login-form .form-group {
    margin-bottom: 18px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #999;
    font-size: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
}

.stat-item {
    padding: 10px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.stat-label {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
}

.action-btn .icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.action-btn span:last-child {
    font-size: 12px;
}

.record-list {
    list-style: none;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

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

.record-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.record-detail {
    display: flex;
    flex-direction: column;
}

.record-course {
    font-size: 13px;
    color: #333;
}

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

.record-hours {
    display: block;
    font-weight: 600;
    font-size: 13px;
}

.record-time {
    display: block;
    font-size: 11px;
}

.student-list {
    list-style: none;
}

.student-item a {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
}

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

.student-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: #fff;
    font-weight: 600;
    margin-right: 12px;
}

.student-info {
    flex: 1;
}

.student-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.student-phone {
    font-size: 12px;
}

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

.hours-value {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
}

.hours-label {
    font-size: 11px;
}

.student-profile {
    text-align: center;
    padding: 10px 0;
}

.student-profile .student-name {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0 5px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-box {
    display: flex;
    gap: 10px;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.course-item {
    padding: 5px 0;
}

.course-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.course-desc {
    font-size: 12px;
    margin-bottom: 8px;
}

.course-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.course-price {
    color: #ff4757;
    font-weight: 500;
}

.course-actions {
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.message-list {
    list-style: none;
}

.message-item {
    border-bottom: 1px solid #eee;
}

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

.message-item a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
}

.message-item.unread {
    background: #f8f9ff;
    margin: 0 -15px;
    padding: 0 15px;
}

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

.message-time {
    font-size: 11px;
}

.message-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 3px;
}

.message-preview {
    font-size: 12px;
}

.message-detail {
    padding: 10px 0;
}

.message-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.message-detail .message-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.message-content {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.homework-item {
    padding: 5px 0;
}

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

.homework-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.homework-course {
    font-size: 12px;
    margin-bottom: 5px;
}

.homework-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.homework-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.homework-actions {
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.homework-info {
    padding: 10px 0;
}

.homework-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.submission-item {
    padding: 10px 0;
}

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

.student-name {
    font-weight: 600;
}

.submission-content {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.submission-file {
    margin-bottom: 10px;
}

.submission-file a {
    color: #667eea;
    font-size: 13px;
}

.submission-time {
    font-size: 11px;
    margin-bottom: 10px;
}

.grade-result {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
}

.grade-form {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.grade-form .form-group {
    margin-bottom: 10px;
}

.video-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.video-cover {
    width: 100px;
    height: 60px;
    background: #000;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    color: #fff;
    font-size: 20px;
    z-index: 1;
}

.video-duration {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
}

.video-info {
    flex: 1;
    min-width: 0;
}

.video-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-course {
    font-size: 12px;
    margin-bottom: 5px;
}

.video-progress {
    margin-top: 5px;
}

.progress-bar {
    height: 3px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 3px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.video-player-container {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-player-container video {
    display: block;
}

.video-desc {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.profile-header {
    text-align: center;
    padding: 15px 0;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0 5px;
}

.profile-role {
    margin-bottom: 5px;
}

.empty-state {
    text-align: center;
    padding: 30px 0;
    color: #999;
}

.error-page {
    text-align: center;
    padding: 40px 0;
}

.error-page h1 {
    font-size: 60px;
    color: #667eea;
    margin-bottom: 10px;
}

.error-page p {
    color: #999;
    margin-bottom: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
}

.page-info {
    font-size: 12px;
    color: #999;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.radio-item input {
    width: auto;
}

.toast {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.student-item {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

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

.student-main {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.student-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.course-info-main {
    margin-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

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

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
}

.checkbox-item input {
    width: auto;
}

.student-select-box {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.select-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.student-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.student-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.student-checkbox-item:hover {
    background: #e9ecef;
}

.student-checkbox-item input {
    width: 18px;
    height: 18px;
}

.student-info-inline {
    display: flex;
    justify-content: space-between;
    flex: 1;
}

.student-name-inline {
    font-weight: 500;
}

.student-hours-inline {
    font-size: 12px;
}

.course-total {
    color: #667eea;
    font-weight: 500;
}

.welcome-header {
    text-align: center;
    padding: 20px 0;
}

.welcome-header h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}

.welcome-header p {
    color: #999;
    font-size: 14px;
}

.time-select-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.time-checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.time-checkbox-item:hover {
    background: #e9ecef;
}

.time-checkbox-item input {
    margin-right: 6px;
}

.time-checkbox-item input:checked + .time-label {
    color: #667eea;
    font-weight: 500;
}

.class-time-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.class-time-tag {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 15px;
    font-size: 12px;
}

.day-header {
    font-size: 15px;
    font-weight: 600;
    color: #667eea;
    padding: 10px 0;
    border-bottom: 2px solid #667eea;
    margin-bottom: 10px;
}

.time-slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.time-slot-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.time-slot-item:hover {
    background: #e9ecef;
}

.time-slot-item input {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.time-slot-item input:checked {
    accent-color: #667eea;
}

.time-slot-item input:checked + .slot-time {
    color: #667eea;
    font-weight: 600;
}

.time-slot-item input:checked ~ * {
    color: #667eea;
}

.slot-time {
    font-size: 14px;
    color: #333;
}

.class-time-day {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.class-time-day:last-child {
    border-bottom: none;
}

.day-label {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
}

.day-time-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.class-time-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.class-time-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.class-time-item.disabled {
    opacity: 0.5;
    background: #eee;
}

.time-range {
    font-size: 14px;
    font-weight: 500;
}

.time-actions {
    display: flex;
    gap: 5px;
}

.day-section {
    margin-bottom: 10px;
}

.day-header-small {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
    padding-bottom: 3px;
    border-bottom: 1px solid #eee;
}

.time-slot-grid-small {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.time-slot-item-small {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.time-slot-item-small:hover {
    background: #e9ecef;
}

.time-slot-item-small input {
    margin-right: 6px;
}

.time-slot-item-small input:checked + span {
    color: #667eea;
    font-weight: 600;
}

.day-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.day-row {
    display: flex;
    gap: 12px;
}

.day-btn {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.day-btn:active {
    transform: scale(0.96);
}

.day-btn.active {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.day-btn .day-name {
    font-size: 15px;
    font-weight: 600;
}

.day-btn .day-arrow {
    font-size: 11px;
    opacity: 0.9;
}

.time-panel {
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    margin-top: 0;
    display: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    animation: slideDown 0.3s ease;
}

.time-panel-header {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.menu-item.hidden {
    opacity: 0.5;
    background: #eee;
}

.menu-drag {
    display: flex;
    align-items: center;
    gap: 5px;
}

.drag-icon {
    color: #999;
    cursor: move;
    font-size: 16px;
}

.sort-input {
    width: 40px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.menu-icon {
    font-size: 20px;
}

.menu-name {
    font-weight: 500;
    min-width: 60px;
}

.menu-url {
    flex: 1;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-actions {
    display: flex;
    gap: 5px;
}

.icon-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.icon-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 20px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-option:hover {
    border-color: #667eea;
    transform: scale(1.1);
}

.icon-fa-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.icon-fa-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 18px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}

.icon-fa-option:hover {
    border-color: #667eea;
    color: #667eea;
    transform: scale(1.1);
}

.menu-icon-fa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 18px;
    color: #667eea;
}

.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;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

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

.modal-title {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.modal-form {
    padding: 15px;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.modal-footer .btn {
    flex: 1;
}

.student-card {
    padding: 12px 15px;
}

.student-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

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

.student-detail {
    flex: 1;
    min-width: 0;
}

.student-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.student-name-text {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.student-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.remaining-hours {
    color: #667eea;
    font-weight: 500;
}

.student-actions-col {
    display: flex;
    flex-direction: row;
    gap: 5px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}
