.sidebar-toggle {
    position: fixed;
    top: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f0f0f0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #ff6b35;
    border: 2px solid #d0d0d0;
}

.sidebar-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.25);
    border-color: #ff6b35;
}

.sidebar-toggle svg {
    width: 28px;
    height: 28px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.sidebar {
    position: fixed;
    top: 0;
    left: -340px;
    width: 340px;
    height: 100%;
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
    z-index: 1002;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 0 16px 16px 0;
    border: 2px solid #d0d0d0;
    border-left: none;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 24px;
    background: linear-gradient(180deg, #ff6b35, #e55a2b);
    border-radius: 0 16px 0 0;
}

.sidebar-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.sidebar-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s;
}

.sidebar-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.sidebar-content {
    padding: 20px;
    max-height: calc(100% - 180px);
    overflow-y: auto;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, #f8f9fa 70%, transparent);
}

.sidebar-login-area {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 14px;
    border-radius: 8px;
    transition: all 0.3s;
    background: linear-gradient(180deg, #ffffff, #f5f6fa);
    border: 2px solid #d0d0d0;
}

.sidebar-login-area:hover {
    background: linear-gradient(180deg, #ff6b35, #e55a2b);
    border-color: #ff6b35;
    transform: translateX(6px);
}

.sidebar-login-area:hover .sidebar-login-text {
    color: #fff;
}

.sidebar-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-right: 14px;
    border: 2px solid #d0d0d0;
    object-fit: cover;
}

.sidebar-login-text {
    font-size: 0.95rem;
    color: #1a1a2e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
}

.sidebar-user-nickname {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
}

.sidebar-empty-tip {
    text-align: center;
    color: rgba(26, 26, 46, 0.6);
    padding: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-course-item {
    display: block;
    padding: 14px 20px;
    margin: 0;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.sidebar-course-item:hover {
    background: #f8f9fa;
}

.sidebar-course-item::after {
    content: '›';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #ccc;
    transition: all 0.2s;
}

.sidebar-course-item:hover::after {
    color: #ff6b35;
    transform: translateY(-50%) translateX(4px);
}

.sidebar-section-title {
    padding: 12px 20px 8px;
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 8px;
}

.sidebar-course-stats {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.stat-item {
    font-size: 0.75rem;
    color: #666;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
}

.stat-wrong {
    color: #e74c3c;
    background: #fdeaea;
}

.sidebar-course-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    border-radius: 8px;
    text-align: center;
    line-height: 36px;
    font-size: 1.2rem;
    margin-right: 12px;
    vertical-align: middle;
}

.sidebar-course-info {
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 60px);
}

.sidebar-course-name {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.sidebar-course-id {
    display: inline-block;
    font-size: 0.75rem;
    color: #999;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
}

.sidebar-material-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff, #f5f6fa);
    border-radius: 8px;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 2px solid #d0d0d0;
    transition: all 0.3s;
}

.sidebar-material-item:hover {
    transform: translateX(10px);
    border-color: #ff6b35;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
}

.sidebar-material-item:last-child {
    margin-bottom: 0;
}

.sidebar-material-info {
    flex: 1;
}

.sidebar-material-name {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #1a1a2e;
}

.sidebar-material-meta {
    font-size: 0.9rem;
    color: rgba(26, 26, 46, 0.6);
}

.sidebar-material-days {
    font-weight: 700;
    color: #ff6b35;
}

.sidebar-material-action {
    margin-left: 20px;
}

.sidebar-material-action button {
    background: linear-gradient(180deg, #ff6b35, #e55a2b);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #ff8c5a;
}

.sidebar-material-action button:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.right-sidebar-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f0f0f0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #4ecdc4;
    border: 2px solid #d0d0d0;
}

.right-sidebar-toggle:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.25);
    border-color: #4ecdc4;
}

.right-sidebar-toggle svg {
    width: 28px;
    height: 28px;
}

.right-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.right-sidebar {
    position: fixed;
    top: 0;
    right: -360px;
    width: 360px;
    height: 100%;
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 16px 0 0 16px;
    border: 2px solid #d0d0d0;
    border-right: none;
}

.right-sidebar.active {
    right: 0;
}

.right-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 24px;
    background: linear-gradient(180deg, #4ecdc4, #26a69a);
    border-radius: 16px 0 0 0;
}

.right-sidebar-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.right-sidebar-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s;
}

.right-sidebar-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(-90deg);
}

.right-sidebar-content {
    padding: 20px;
    max-height: calc(100% - 100px);
    overflow-y: auto;
}

.right-sidebar-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
}

.right-sidebar-stat {
    background: linear-gradient(180deg, #ffffff, #f5f6fa);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #d0d0d0;
    transition: all 0.3s;
}

.right-sidebar-stat:hover {
    border-color: #4ecdc4;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.15);
}

.right-sidebar-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.right-sidebar-stat-label {
    font-size: 0.8rem;
    color: rgba(26, 26, 46, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.right-sidebar-section {
    padding: 20px;
}

.right-sidebar-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d0d0d0;
}

.right-sidebar-record-item {
    background: linear-gradient(180deg, #ffffff, #f5f6fa);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 2px solid #d0d0d0;
    transition: all 0.3s;
}

.right-sidebar-record-item:hover {
    border-color: #4ecdc4;
}

.right-sidebar-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.right-sidebar-record-name {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 0.95rem;
}

.right-sidebar-record-date {
    font-size: 0.8rem;
    color: rgba(26, 26, 46, 0.5);
}

.right-sidebar-record-score {
    display: flex;
    align-items: center;
    gap: 8px;
}

.right-sidebar-record-score-label {
    font-size: 0.85rem;
    color: rgba(26, 26, 46, 0.7);
}

.right-sidebar-record-score-value {
    font-weight: 700;
    color: #4ecdc4;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        top: 16px;
        left: 16px;
        width: 48px;
        height: 48px;
    }

    .sidebar {
        width: 300px;
        left: -300px;
    }

    .right-sidebar-toggle {
        top: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }

    .right-sidebar {
        width: 100%;
        right: -100%;
        border-radius: 0;
    }

    .right-sidebar-header {
        border-radius: 0;
    }
}
