/* Dashboard Styles */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --primary-light: #5dade2;
    --secondary-color: #2ecc71;
    --secondary-dark: #27ae60;
    --accent-color: #f39c12;
    --danger-color: #e74c3c;
    --text-color: #333333;
    --text-light: #767676;
    --background-color: #f5f7fa;
    --card-color: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #2ecc71;
    --border-radius: 8px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.sidebar-header h2 {
    font-size: 18px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    flex-grow: 1;
    overflow-y: auto;
}

.menu-item {
    margin-bottom: 5px;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.menu-link i {
    font-size: 18px;
    min-width: 24px;
    margin-right: 10px;
}

.menu-link span {
    white-space: nowrap;
    overflow: hidden;
}

.menu-item.active .menu-link {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary-color);
}

.menu-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.help-button, .logout-button {
    display: flex;
    align-items: center;
    padding: 10px;
    width: 100%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: left;
}

.help-button:last-child, .logout-button:last-child {
    margin-bottom: 0;
}

.help-button i, .logout-button i {
    margin-right: 10px;
}

.help-button:hover, .logout-button:hover {
    color: white;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-header h2,
.sidebar.collapsed .menu-link span,
.sidebar.collapsed .help-button span,
.sidebar.collapsed .logout-button span {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
}

.sidebar.collapsed .menu-link {
    justify-content: center;
    padding: 15px;
}

.sidebar.collapsed .menu-link i {
    margin-right: 0;
    font-size: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    margin-left: 260px;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 70px;
}

/* Main Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}

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

.menu-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    margin-right: 15px;
    display: none;
}

.header-left h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

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

.search-bar {
    position: relative;
    background-color: #f8f9fa;
    border-radius: 25px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    min-width: 250px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    border-color: var(--primary-color);
}

.search-bar i {
    color: #aaa;
    margin-right: 10px;
    font-size: 14px;
}

.search-bar input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: var(--text-color);
}

.notifications {
    position: relative;
}

.icon-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.icon-button:hover {
    background-color: #f1f3f5;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e74c3c;
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.user-profile:hover {
    background-color: #f1f3f5;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
    color: var(--text-color);
}

/* Welcome Banner */
.welcome-banner {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--box-shadow);
}

.welcome-message h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
}

.welcome-message p {
    margin: 0;
    color: var(--text-light);
    font-size: 16px;
}

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

.subscription-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 15px;
}

.subscription-badge.free {
    background-color: #e8f4fd;
    color: var(--primary-color);
}

.subscription-badge.premium {
    background-color: #fef5e5;
    color: var(--accent-color);
}

.upgrade-button {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.upgrade-button:hover {
    background-color: var(--primary-dark);
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: var(--box-shadow);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(52, 152, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 20px;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
}

.stat-value {
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 600;
}

.stat-change {
    margin: 0;
    font-size: 12px;
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

.stat-change span {
    margin-left: 5px;
    color: var(--text-light);
}

/* Dashboard Content */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.dashboard-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 0;
}

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

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.card-actions {
    display: flex;
    align-items: center;
}

.card-actions select {
    margin-right: 10px;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.view-all-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
}

.card-body {
    padding: 20px;
}

/* Chart Card */
.chart-card {
    margin-bottom: 25px;
}

.chart-container {
    height: 250px;
    position: relative;
}

/* Two Column Cards */
.column-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Regulations List */
.regulations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.regulation-item {
    display: flex;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.regulation-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.regulation-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #f1f2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    color: var(--text-light);
}

.regulation-icon.new {
    background-color: #e8f4fd;
    color: var(--primary-color);
}

.regulation-icon.updated {
    background-color: #e8f8f3;
    color: var(--success-color);
}

.regulation-content {
    flex: 1;
}

.regulation-content h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
}

.regulation-content p {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--text-light);
}

.regulation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.regulation-date, .regulation-status {
    font-size: 12px;
    color: var(--text-light);
}

.regulation-actions {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

/* News Grid */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    align-items: flex-start;
}

.news-image {
    margin-right: 15px;
    flex-shrink: 0;
}

.news-image img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.news-content {
    flex: 1;
}

.news-content h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.news-content p {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--text-light);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
}

/* Dropdown Menus */
.dropdown-menu {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: hidden;
    display: none;
}

.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.dropdown-user-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
}

.dropdown-user-info p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

.dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-list li {
    border-bottom: 1px solid var(--border-color);
}

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

.dropdown-list a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-list a:hover {
    background-color: var(--background-color);
}

.dropdown-list a i {
    margin-right: 10px;
    width: 16px;
    color: var(--text-light);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

.dropdown-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.dropdown-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* Notifications Dropdown */
.mark-all-read {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.notifications-list {
    padding: 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: var(--background-color);
}

.notification-item.unread {
    background-color: rgba(52, 152, 219, 0.05);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin: 0 0 5px;
    font-size: 14px;
}

.notification-time {
    font-size: 12px;
    color: var(--text-light);
}

/* Welcome Toast Notification */
.welcome-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
    padding: 20px;
    min-width: 300px;
    max-width: 450px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    overflow: hidden;
}

.welcome-toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.welcome-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 24px;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-content h3 {
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.toast-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

.toast-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    margin-left: 10px;
    margin-top: -5px;
    transition: opacity 0.2s ease;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar .sidebar-header h2,
    .sidebar .menu-link span,
    .sidebar .help-button span,
    .sidebar .logout-button span {
        display: none;
    }
    
    .sidebar .sidebar-header {
        justify-content: center;
    }
    
    .sidebar .menu-link {
        justify-content: center;
        padding: 15px;
    }
    
    .sidebar .menu-link i {
        margin-right: 0;
        font-size: 20px;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .column-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .subscription-info {
        margin-top: 15px;
    }
    
    .search-bar {
        display: none;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 15px;
    }
    
    .main-header {
        flex-wrap: wrap;
    }
    
    .header-right {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }
    
    .user-name {
        display: none;
    }
    
    .regulation-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .news-image img {
        width: 100%;
        height: auto;
    }
    
    .welcome-toast {
        left: 20px;
        right: 20px;
        bottom: 20px;
        min-width: auto;
    }
}

/* Content Sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Enhanced Section Headers */
.section-header {
    margin-bottom: 30px;
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.section-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

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

.action-button {
    padding: 8px 15px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.action-button:hover {
    background-color: #f1f3f5;
    border-color: #ccc;
}

.action-button i {
    margin-right: 6px;
}

.header-description {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    max-width: 800px;
}

.header-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2px;
    margin-bottom: -20px;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    overflow-x: auto;
}

.tab-button {
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-button:hover:not(.active) {
    color: #333;
    background-color: #f8f9fa;
}

.tab-button i {
    margin-right: 8px;
    font-size: 15px;
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        margin-top: 15px;
    }
    
    .header-tabs {
        margin-bottom: -20px;
    }
}

/* Market Summary */
.market-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.summary-card {
    display: flex;
    align-items: center;
}

.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: rgba(52, 152, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 20px;
}

.summary-content h4 {
    margin: 0 0 5px;
    font-size: 14px;
    color: var(--text-light);
}

.summary-value {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 5px;
}

.summary-caption {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

/* Industry Insights */
.industry-insights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.insight-card {
    display: flex;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.insight-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
    flex-shrink: 0;
}

.insight-content {
    flex: 1;
}

.insight-content h4 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.insight-content p {
    margin: 0 0 15px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

.insight-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-color);
}

/* Insights Form */
.insights-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.primary-button {
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.primary-button:hover {
    background-color: var(--primary-dark);
}

/* Insights Results */
.insights-header {
    margin-bottom: 20px;
}

.insights-header h3 {
    margin: 0 0 5px;
    font-size: 20px;
    font-weight: 600;
}

.insights-metadata {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.insight-panel {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.insight-panel.full-width {
    grid-column: 1 / -1;
}

.insight-panel h4 {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 600;
}

.key-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.metric {
    text-align: center;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.metric-value {
    font-size: 20px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.metric-label {
    font-size: 14px;
    color: var(--text-light);
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.opportunity-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.opportunity-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary-color);
    font-size: 20px;
}

.opportunity-card h5 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.opportunity-card p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.insights-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.download-btn, .share-btn {
    padding: 10px 15px;
    background-color: #f5f7fa;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.download-btn i, .share-btn i {
    margin-right: 8px;
}

.download-btn:hover, .share-btn:hover {
    background-color: #e9ecef;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    font-size: 16px;
    color: var(--text-light);
}

.loading-spinner i {
    margin-right: 10px;
}

/* Compliance Score Card */
.regulatory-overview {
    margin-bottom: 25px;
}

.compliance-score-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.score-header {
    margin-bottom: 20px;
}

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

.score-display {
    display: flex;
    align-items: center;
}

.score-circle {
    width: 150px;
    flex-shrink: 0;
    margin-right: 30px;
}

.circular-chart {
    width: 100%;
    height: auto;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 3.8;
    stroke-linecap: round;
}

.percentage {
    fill: var(--primary-color);
    font-size: 0.5em;
    text-anchor: middle;
    font-weight: bold;
}

.score-details {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
}

.score-item.good {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.score-item.warning {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.score-item.danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.score-value {
    font-weight: 600;
}

/* Roadmap Timeline */
.compliance-roadmap {
    padding: 10px 0;
}

.roadmap-timeline {
    position: relative;
    padding-left: 30px;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

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

.timeline-marker {
    position: absolute;
    top: 0;
    left: -30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--border-color);
    z-index: 1;
}

.timeline-item.completed .timeline-marker {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.timeline-item.current .timeline-marker {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.timeline-content {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.timeline-content h4 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.timeline-content p {
    margin: 0 0 15px;
    font-size: 14px;
    color: var(--text-light);
}

.timeline-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.timeline-status {
    display: flex;
    align-items: center;
}

.timeline-status i {
    margin-right: 5px;
}

.timeline-status.completed {
    color: var(--success-color);
}

.timeline-status.pending {
    color: var(--primary-color);
}

.timeline-status.upcoming {
    color: var(--accent-color);
}

.action-btn {
    padding: 8px 12px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.action-btn i {
    margin-right: 5px;
}

.refresh-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.refresh-btn i {
    margin-right: 5px;
}

/* Regulatory AI Assistant */
.ai-assistant {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.assistant-chat {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    display: flex;
    gap: 15px;
    max-width: 80%;
}

.chat-message.system {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.message-content {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chat-message.user .message-content {
    background-color: var(--primary-color);
    color: white;
}

.message-content p {
    margin: 0 0 10px;
    line-height: 1.5;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul, .message-content ol {
    margin: 10px 0;
    padding-left: 25px;
}

.message-content li {
    margin-bottom: 5px;
}

.message-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.chat-message.user .message-content a {
    color: white;
    text-decoration: underline;
}

.assistant-input {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.assistant-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.send-btn {
    padding: 0 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.send-btn:hover {
    background-color: var(--primary-dark);
}

.assistant-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.suggestion-chip {
    padding: 8px 12px;
    background-color: #f1f3f5;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-chip:hover {
    background-color: #e9ecef;
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-light);
    opacity: 0.6;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .market-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .opportunities-grid {
        grid-template-columns: 1fr;
    }
    
    .score-display {
        flex-direction: column;
    }
    
    .score-circle {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .score-details {
        grid-template-columns: 1fr;
    }
}

/* Improve spacing between Market Insights sections */
.insights-overview {
    margin-bottom: 30px;
}

/* Tab Content Containers */
.tab-content-overview,
.tab-content-industries,
.tab-content-regions,
.tab-content-custom,
.tab-content-dashboard,
.tab-content-updates,
.tab-content-roadmap,
.tab-content-assistant {
    margin-top: 30px;
    animation: fadeIn 0.3s ease;
}

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

/* Active Tab Button Indicator */
.tab-button.active {
    position: relative;
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    animation: tabIndicator 0.2s ease;
}

@keyframes tabIndicator {
    from {
        opacity: 0;
        width: 0;
    }
    to {
        opacity: 1;
        width: 100%;
    }
}

/* Subscription Plans */
.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.plan-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.plan-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.03);
}

.plan-card.featured:hover {
    transform: scale(1.03) translateY(-5px);
}

.plan-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
}

.plan-header {
    padding: 25px 25px 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.plan-header h3 {
    font-size: 22px;
    margin: 0 0 15px;
    color: #333;
}

.plan-price {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin: 0 0 5px;
}

.plan-price span {
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

.plan-billing {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.plan-features {
    padding: 25px;
    flex-grow: 1;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: #444;
    font-size: 15px;
}

.plan-features li:last-child {
    margin-bottom: 0;
}

.plan-features li i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

.plan-features li i.fa-check {
    color: var(--success-color, #27ae60);
}

.plan-features li i.fa-times {
    color: #d1d1d1;
}

.plan-footer {
    padding: 20px 25px 25px;
    text-align: center;
}

.plan-button {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    background-color: #f5f5f5;
    color: #333;
}

.plan-button:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.plan-button.current-plan {
    background-color: #e0e0e0;
    color: #555;
}

.plan-button.premium-btn {
    background-color: var(--primary-color);
    color: white;
}

.plan-button.premium-btn:hover {
    background-color: var(--primary-dark-color, #2980b9);
}

.plan-button.enterprise-btn {
    background-color: #6c5ce7;
    color: white;
}

.plan-button.enterprise-btn:hover {
    background-color: #5f50e6;
}

/* Subscription FAQ */
.subscription-faq {
    margin-top: 40px;
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.subscription-faq h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 22px;
    color: #333;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.faq-item:hover {
    border-color: #d0d0d0;
}

.faq-question {
    padding: 18px 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.faq-question i {
    font-size: 14px;
    color: #888;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    background-color: #f0f7ff;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Payment Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #333;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    color: #333;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

.billing-option {
    font-size: 16px;
    color: #777;
    transition: color 0.3s ease;
}

.billing-option.active {
    color: #333;
    font-weight: 600;
}

.discount-badge {
    display: inline-block;
    font-size: 12px;
    background-color: var(--primary-color);
    color: white;
    padding: 3px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Payment Summary */
.payment-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 16px;
}

.summary-item:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.summary-item.total {
    font-weight: 700;
    color: #333;
    font-size: 18px;
    padding-top: 15px;
}

/* Payment Methods */
.payment-methods {
    margin-bottom: 30px;
}

.payment-methods h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.payment-method-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-method {
    flex: 1;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    background-color: #f5f5f5;
}

.payment-method.active {
    border-color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

.payment-method i {
    font-size: 24px;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.payment-method span {
    display: block;
    font-size: 14px;
    color: #333;
}

.payment-method-form {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

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

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.bank-details {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.bank-details p {
    margin: 8px 0;
    font-size: 15px;
}

.bank-note {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.payment-button {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.payment-button:hover {
    background-color: var(--primary-dark-color, #2980b9);
}

.payment-disclaimer {
    font-size: 13px;
    color: #777;
    text-align: center;
    margin-top: 15px;
}

.payment-disclaimer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Success Modal */
.success-content {
    text-align: center;
    padding: 40px 30px;
}

.success-icon {
    font-size: 80px;
    color: #27ae60;
    margin-bottom: 20px;
}

.success-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.success-button:hover {
    background-color: var(--primary-dark-color, #2980b9);
}

@media (max-width: 768px) {
    .subscription-plans {
        grid-template-columns: 1fr;
    }
    
    .plan-card.featured {
        transform: scale(1);
    }
    
    .plan-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .payment-method-options {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .modal-content {
        padding: 20px;
        width: 95%;
    }
}

/* Account Tabs */
.account-tabs {
    display: flex;
    margin-bottom: 30px;
    overflow-x: auto;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2px;
}

.account-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    color: #555;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.account-tab-btn:hover {
    color: var(--primary-color);
}

.account-tab-btn.active {
    color: var(--primary-color);
    font-weight: 600;
}

.account-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
    animation: tabIndicator 0.3s ease;
}

.account-tab-content {
    background: white;
    border-radius: 8px;
}

.account-tab-pane {
    display: none;
}

.account-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.profile-avatar {
    position: relative;
    margin-right: 25px;
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-avatar-btn:hover {
    background: var(--primary-dark-color, #2980b9);
    transform: scale(1.1);
}

.change-avatar-btn i {
    font-size: 14px;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    margin: 0 0 5px;
    font-size: 24px;
    color: #333;
}

.profile-info p {
    margin: 0 0 12px;
    color: #666;
    font-size: 16px;
}

.membership-badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    background-color: #f0f0f0;
    color: #555;
}

.membership-badge.premium {
    background-color: #eaf7fd;
    color: var(--primary-color);
    border: 1px solid #c3e6ff;
}

/* Account Cards */
.account-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.account-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

/* Form Styling */
.form-hint {
    font-size: 13px;
    color: #777;
    margin-top: 5px;
    line-height: 1.4;
}

.save-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background-color: var(--primary-dark-color, #2980b9);
}

/* Current Plan Card */
.current-plan {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.plan-details h4 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #333;
}

.plan-details p {
    margin: 0 0 5px;
    color: #666;
    font-size: 15px;
}

.plan-price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 15px;
}

.plan-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.secondary-btn, .danger-btn, .primary-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.secondary-btn {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.secondary-btn:hover {
    background-color: #e9e9e9;
}

.danger-btn {
    background-color: #fff;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.danger-btn:hover {
    background-color: #fef5f5;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--primary-dark-color, #2980b9);
}

/* Plan Features */
.plan-features h4 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #333;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px 20px;
}

.plan-features li {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 14px;
    margin-bottom: 10px;
}

.plan-features li i {
    color: var(--success-color, #27ae60);
    margin-right: 10px;
    font-size: 14px;
}

/* Payment Methods */
.payment-methods {
    margin-top: 15px;
}

.payment-method-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.payment-method-item:hover {
    border-color: #ccc;
    background-color: #f9f9f9;
}

.payment-method-item.active {
    border-color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.05);
}

.payment-method-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f7ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.payment-method-icon i {
    font-size: 18px;
}

.payment-method-details {
    flex: 1;
}

.payment-method-details h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #333;
}

.payment-method-details p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.payment-method-actions {
    display: flex;
    gap: 15px;
}

.text-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.text-btn:hover {
    color: var(--primary-dark-color, #2980b9);
    text-decoration: underline;
}

.text-btn.text-danger {
    color: #e74c3c;
}

.text-btn.text-danger:hover {
    color: #c0392b;
}

.add-payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 8px;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-payment-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.add-payment-btn i {
    margin-right: 8px;
    font-size: 14px;
}

/* Billing History */
.billing-table {
    width: 100%;
    border-collapse: collapse;
}

.billing-table th {
    text-align: left;
    padding: 12px 15px;
    background-color: #f9f9f9;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.billing-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 14px;
}

.billing-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.success {
    background-color: #edf7ed;
    color: #27ae60;
}

.status-badge.pending {
    background-color: #fef9e6;
    color: #f39c12;
}

.status-badge.failed {
    background-color: #fee7e6;
    color: #e74c3c;
}

.download-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

.download-link:hover {
    color: var(--primary-dark-color, #2980b9);
    text-decoration: underline;
}

.download-link i {
    margin-right: 5px;
}

/* Usage & Reports */
.usage-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}

.usage-item {
    margin-bottom: 20px;
}

.usage-label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 15px;
}

.usage-progress {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.progress-bar {
    height: 12px;
    background-color: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 6px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 13px;
}

/* Reports List */
.reports-list {
    margin-top: 15px;
}

.report-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.report-item:hover {
    background-color: #f9f9f9;
}

.report-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.report-icon i {
    font-size: 20px;
}

.report-icon i.fa-file-pdf {
    color: #e74c3c;
}

.report-icon i.fa-file-excel {
    color: #27ae60;
}

.report-details {
    flex: 1;
}

.report-details h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #333;
}

.report-details p {
    margin: 0;
    font-size: 14px;
    color: #777;
}

.report-actions {
    display: flex;
    gap: 15px;
}

.view-all-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.view-all-btn:hover {
    background-color: #e9e9e9;
    color: #333;
}

/* Notification Settings */
.notification-settings {
    margin-top: 15px;
}

.notification-group {
    margin-bottom: 25px;
}

.notification-group h4 {
    font-size: 16px;
    margin: 0 0 15px;
    color: #333;
}

.notification-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.notification-option:hover {
    background-color: #f9f9f9;
}

.option-details {
    flex: 1;
}

.option-details h5 {
    margin: 0 0 5px;
    font-size: 15px;
    color: #333;
}

.option-details p {
    margin: 0;
    font-size: 14px;
    color: #777;
    line-height: 1.4;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    margin-left: 15px;
    margin-top: 2px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    transition: .4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Two Factor Authentication */
.two-factor-auth {
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

.auth-status {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 22px;
}

.status-icon.disabled {
    background-color: #f0f0f0;
    color: #999;
}

.status-icon.enabled {
    background-color: #edf7ed;
    color: #27ae60;
}

.status-details h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #333;
}

.status-details p {
    margin: 0;
    font-size: 14px;
    color: #777;
    line-height: 1.4;
}

/* Account Actions */
.account-actions {
    margin-top: 15px;
}

.account-actions button {
    width: 100%;
    margin-bottom: 10px;
}

.action-description {
    font-size: 14px;
    color: #777;
    margin-bottom: 25px;
}

/* Modal List */
.modal-list {
    margin-bottom: 20px;
    padding-left: 20px;
}

.modal-list li {
    margin-bottom: 8px;
    font-size: 15px;
    color: #555;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    min-height: 100px;
    resize: vertical;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .current-plan {
        flex-direction: column;
    }
    
    .plan-actions {
        margin-top: 20px;
    }
    
    .plan-features ul {
        grid-template-columns: 1fr;
    }
    
    .notification-option {
        flex-direction: column;
    }
    
    .toggle-switch {
        margin-top: 15px;
        margin-left: 0;
    }
    
    .report-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .report-icon {
        margin-bottom: 15px;
    }
    
    .report-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }
}

/* Notification Toast */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 400px;
    opacity: 0;
}

.notification.visible {
    transform: translateX(0);
    opacity: 1;
}

.notification i {
    margin-right: 10px;
    font-size: 20px;
}

.notification span {
    flex: 1;
    margin-right: 10px;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
    padding: 0;
    font-size: 14px;
}

.notification-close:hover {
    color: #333;
}

.notification.success {
    border-left: 4px solid #27ae60;
}

.notification.success i {
    color: #27ae60;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.error i {
    color: #e74c3c;
}

.notification.info {
    border-left: 4px solid var(--primary-color);
}

.notification.info i {
    color: var(--primary-color);
}

.notification.warning {
    border-left: 4px solid #f39c12;
}

.notification.warning i {
    color: #f39c12;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: 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 {
    background-color: white;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

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

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

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
    font-size: 20px;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

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

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.required {
    color: #e74c3c;
}

/* Help & Support Styles */
.help-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    overflow-x: auto;
}

.help-tab-btn {
    padding: 12px 20px;
    margin-right: 5px;
    border: none;
    background: none;
    color: #555;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.help-tab-btn:hover {
    color: #3f51b5;
}

.help-tab-btn.active {
    color: #3f51b5;
}

.help-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #3f51b5;
    border-radius: 3px 3px 0 0;
}

.help-tab-pane {
    display: none;
}

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

/* FAQ Styles */
.faq-search {
    position: relative;
    width: 280px;
}

.faq-search input {
    width: 100%;
    padding: 8px 35px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.faq-search i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.faq-category {
    padding: 6px 12px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-category:hover {
    background-color: #e9e9e9;
}

.faq-category.active {
    background-color: #3f51b5;
    color: white;
    border-color: #3f51b5;
}

.faq-container {
    max-width: 100%;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-answer p, .faq-answer ol, .faq-answer ul {
    margin-top: 0;
    line-height: 1.6;
}

.faq-answer ol {
    padding-left: 20px;
}

/* User Guide Styles */
.guide-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.guide-nav-item {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background-color: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.guide-nav-item i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #555;
}

.guide-nav-item span {
    font-size: 14px;
    font-weight: 500;
}

.guide-nav-item:hover {
    background-color: #e9e9e9;
}

.guide-nav-item.active {
    background-color: #3f51b5;
    color: white;
}

.guide-nav-item.active i {
    color: white;
}

.guide-section {
    display: none;
}

.guide-section.active {
    display: block;
}

.guide-section h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
}

.guide-step {
    display: flex;
    margin-bottom: 30px;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #3f51b5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h5 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.guide-img {
    max-width: 100%;
    border-radius: 4px;
    margin: 15px 0;
    border: 1px solid #ddd;
}

.guide-subsection {
    margin-bottom: 25px;
}

.guide-subsection h5 {
    margin-bottom: 10px;
    font-size: 16px;
}

/* Contact Us Styles */
.contact-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-option {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #3f51b5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-icon i {
    font-size: 20px;
    color: white;
}

.contact-details h4 {
    margin: 0 0 10px;
    font-size: 16px;
}

.contact-details p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #666;
}

.contact-link {
    color: #3f51b5;
    text-decoration: none;
    font-weight: 500;
}

.start-chat-btn {
    padding: 8px 15px;
    background-color: #3f51b5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.start-chat-btn:hover {
    background-color: #303f9f;
}

.contact-form-container {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 6px;
}

.contact-form-container h4 {
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-form .form-row .form-group {
    flex: 1;
}

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

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.contact-form textarea {
    resize: vertical;
}

.form-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Video Tutorials Styles */
.tutorial-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tutorial-category {
    padding: 8px 15px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tutorial-category:hover {
    background-color: #e9e9e9;
}

.tutorial-category.active {
    background-color: #3f51b5;
    color: white;
    border-color: #3f51b5;
}

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

.tutorial-card {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tutorial-thumbnail {
    position: relative;
}

.tutorial-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.tutorial-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.tutorial-info {
    padding: 15px;
}

.tutorial-info h4 {
    margin: 0 0 10px;
    font-size: 16px;
}

.tutorial-info p {
    margin: 0 0 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.watch-tutorial-btn {
    padding: 8px 15px;
    background-color: #3f51b5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.watch-tutorial-btn i {
    margin-right: 8px;
}

.watch-tutorial-btn:hover {
    background-color: #303f9f;
}

/* Video Modal */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

#video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#video-placeholder i {
    font-size: 50px;
    color: #3f51b5;
    margin-bottom: 15px;
}

.success-message {
    text-align: center;
    padding: 20px;
}

.success-message i {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.success-message h4 {
    margin-bottom: 10px;
}

.success-message p {
    margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .tutorials-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .guide-nav-item {
        min-width: 100px;
    }
    
    .help-tabs {
        justify-content: flex-start;
    }
}