/*******************************************************************************/
/*********          Company:     Shanghai Jruner Technology Co., Ltd.            *********/
/*********          Product:     Jruner Digital Platform(JDP)          *********/
/*********          Created By:  Fan Xiaolei(Raymond)                  *********/
/*********          Created On:  2016-10-11                            *********/
/*********          Modified By: Fan Xiaolei(Raymond)                  *********/
/*********          Modified On:  2020-03-01                           *********/
/*******************************************************************************/
/* Instruction */
/* Post-login Main Page Styles */
/*******************************************************************************/

/* ============================
   Error Page Styles
   ============================ */
.error-container {
    width: 100%;
    max-width: 600px;
    margin: 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

.error-header {
    background: var(--danger-gradient);
    color: var(--text-light);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='7' cy='7' r='7'/%3E%3Ccircle cx='53' cy='7' r='7'/%3E%3Ccircle cx='30' cy='30' r='7'/%3E%3Ccircle cx='7' cy='53' r='7'/%3E%3Ccircle cx='53' cy='53' r='7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.error-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.error-body {
    padding: 2.5rem 2rem;
    text-align: center;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.error-code {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
    font-weight: 600;
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.help-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.help-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.help-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.help-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.help-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ============================
   Success Page Styles
   ============================ */
.success-container {
    width: 100%;
    max-width: 600px;
    margin: 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

.success-header {
    background: var(--success-gradient);
    color: var(--text-light);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.success-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='7' cy='7' r='7'/%3E%3Ccircle cx='53' cy='7' r='7'/%3E%3Ccircle cx='30' cy='30' r='7'/%3E%3Ccircle cx='7' cy='53' r='7'/%3E%3Ccircle cx='53' cy='53' r='7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.success-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.success-body {
    padding: 2.5rem 2rem;
    text-align: center;
}

.success-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.next-steps {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.next-steps-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.next-steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.step-item:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--success-color);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* ============================  
   Main Page Layout Styles
   ============================ */

/* Main Content */
.main-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Left Sidebar */
.left-sidebar {
    width: 16rem;
    background-color: #f9fafb;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
    z-index: 20;
}

.left-sidebar.hidden {
    width: 0;
    display: none;
}

/* Logo and Toggle Button Area */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 1rem;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
}

/* Logo */
.logo {
    width: 3rem;
    height: 3rem;
    background: var(--primary-gradient);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    color: white;
    font-weight: bold;
    font-size: 1.35rem;
}

.logo-img {
    width: 8.88rem;
    height: 8.88rem;
    border-radius: 0;
    object-fit: cover;
}

.welcome-logo-img {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    object-fit: cover;
}

/* Brand Image */
.login-brand-img {
    width: 6rem;
    height: 2rem;
    border-radius: 0.5rem;
    object-fit: cover;
    margin-left: 0.5rem;
}

/* Brand Text */
.brand-text {
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    height: 3rem;
    line-height: 1;
    justify-content: center;
    color: var(--primary-color-start);
}

.brand-label {
    display: inline-block;
}

.brand-label.brand-text--zh {
    font-family: "MiSans", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
    font-size: 1.5rem;
    font-weight: 550;
    letter-spacing: 0.01em;
}

.brand-label.brand-text--en {
    font-family: "Arial Black", Arial, "Inter", "Segoe UI", Roboto, sans-serif;
    font-size: 1.62rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none !important;
    font-variant-caps: normal;
    text-shadow: none;
}

/* Toggle Button */
.sidebar-toggle {
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.sidebar-toggle:hover {
    background-color: #f3f4f6;
}

.sidebar-toggle-icon {
    color: #6b7280;
}

/* Navigation Area */
.nav-area {
    flex: 1;
    overflow-y: auto;
}

/* Menu Area */
.menu-area {
    margin-top: 1rem;
    padding: 0 0.5rem;
}

/* Main Menu */
.main-menu {
    space-y: 0.25rem;
}

/* Menu */
.menu-item {
    margin-bottom: 0.25rem;
}

/* Menu Item Button */
.menu-item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.menu-item-btn:hover {
    background-color: rgba(10, 41, 126, 0.05);
    color: var(--primary-color-start);
}

/* Menu Item Icon */
.menu-item-icon {
    margin-right: 0.75rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

.menu-item-btn:hover .menu-item-icon {
    color: var(--primary-color-start);
}

/* Arrow Icon */
.arrow-icon {
    transition: transform 0.2s ease;
}

.arrow-icon.rotate-180 {
    transform: rotate(180deg);
}

/* Sub Menu */
.sub-menu {
    padding-left: 2.5rem;
    margin-top: 0.25rem;
    space-y: 0.25rem;
    display: none;
}

.sub-menu.show {
    display: block;
}

/* Sub Menu Items */
.sub-menu-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: #4b5563;
}

.sub-menu-item:hover {
    background-color: rgba(10, 41, 126, 0.05);
    color: var(--primary-color-start);
}

/* Sub Menu Item Icon */
.sub-menu-item-icon {
    margin-right: 0.75rem;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.sub-menu-item:hover .sub-menu-item-icon {
    color: var(--primary-color-start);
}

/* No Menu Prompt */
.no-menu {
    padding: 1rem;
    text-align: center;
    color: #6b7280;
}

/* Right Content Area */
.right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Middle Content Area */
.middle-content {
    flex: 1;
    overflow: hidden;
    background-color: white;
}

/* Iframe Container */
.iframe-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Show Sidebar Button */
.show-sidebar-btn {
    position: fixed;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    background-color: var(--primary-color-start);
    color: white;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 30;
    display: none;
}

.show-sidebar-btn.show {
    display: block;
}

/* ============================  
   Responsive Design   ============================ */
@media (max-width: 640px) {
    .error-container,
    .success-container {
        margin: 1rem;
    }

    .error-header,
    .success-header {
        padding: 2rem 1.5rem;
    }

    .error-title,
    .success-title {
        font-size: 1.5rem;
    }

    .error-body,
    .success-body {
        padding: 2rem 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .error-icon,
    .success-icon {
        font-size: 3rem;
    }

    .error-title,
    .success-title {
        font-size: 1.25rem;
    }

    .error-message,
    .success-message {
        font-size: 1rem;
    }

    .next-steps-list {
        max-width: 100%;
    }
}

/* ============================  
   Top Navigation Bar Styles   ============================ */

/* Top Header Area */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

/* Breadcrumb Area */
.breadcrumb-area {
    flex: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: var(--primary-color-start);
}

.breadcrumb-item.active {
    color: var(--primary-color-start);
    font-weight: 500;
}

.breadcrumb-separator {
    color: #d1d5db;
}

/* Quick Actions Area */
.quick-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color-start);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: var(--primary-hover-start);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(10, 41, 126, 0.15);
}

.action-btn:active {
    transform: translateY(0);
}

/* User Panel */
.user-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Notification Button */
.notification-btn {
    position: relative;
    padding: 0.5rem;
    background-color: #f3f4f6;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-btn:hover {
    background-color: #e5e7eb;
}

.notification-btn i {
    color: #4b5563;
    font-size: 1.125rem;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Information */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.user-info:hover {
    background-color: #f3f4f6;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
}

.user-role {
    font-size: 0.75rem;
    color: #6b7280;
}

/* User Action Buttons */
.user-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.action-icon {
    padding: 0.5rem;
    background-color: #f3f4f6;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-icon:hover {
    background-color: #e5e7eb;
}

.action-icon i {
    color: #4b5563;
    font-size: 1rem;
}

.logout-btn:hover {
    background-color: var(--danger-light);
}

.logout-btn:hover i {
    color: var(--danger-dark);
}

/* ============================  
   Notification Panel Styles
   ============================ */

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
}

.overlay.show {
    display: block;
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 4.5rem;
    right: 1rem;
    width: 360px;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 101;
    display: none;
    overflow: hidden;
}

.notification-panel.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

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

/* Notification Panel Header */
.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.notification-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.notification-close {
    padding: 0.375rem;
    background: none;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background-color: #f3f4f6;
}

.notification-close i {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Notification List */
.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Notification */
.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: #f9fafb;
}

.notification-item.unread {
    background-color: #eff6ff;
}

/* Notification Icon */
.notification-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon.success {
    background-color: #dcfce7;
}

.notification-icon.success i {
    color: #16a34a;
}

.notification-icon.warning {
    background-color: #fef3c7;
}

.notification-icon.warning i {
    color: #f59e0b;
}

.notification-icon.info {
    background-color: #dbeafe;
}

.notification-icon.info i {
    color: #3b82f6;
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-content p {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 0.375rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Notification Panel Footer */
.notification-footer {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.notification-footer a {
    font-size: 0.875rem;
    color: var(--primary-color-start);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.notification-footer a:hover {
    color: var(--primary-hover-start);
    text-decoration: underline;
}

/* ============================  
   Responsive Design Extension   ============================ */

@media (max-width: 1024px) {
    .quick-actions {
        display: none;
    }
}

@media (max-width: 640px) {
    .top-header {
        padding: 0.5rem 1rem;
    }

    .breadcrumb-area {
        display: none;
    }

    .user-details {
        display: none;
    }

    .notification-panel {
        width: calc(100% - 2rem);
        right: 1rem;
        left: 1rem;
    }
}


