:root {
    /* Main color palette */
    --primary-color: #6E56CF;
    --primary-light: #9D8DF1;
    --primary-dark: #4A3A8C;
    --secondary-color: #14F195;
    --background-dark: #0F0B19;
    --background-medium: #1A1625;
    --background-light: #2D2A3B;
    --text-primary: #FFFFFF;
    --text-secondary: #A9A6B6;
    --text-tertiary: #6C6A7A;
    --success-color: #14F195;
    --warning-color: #F1C40F;
    --danger-color: #E74C3C;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Sizes and spacing */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --header-height: 70px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.2);
    
    /* Animations */
    --transition-speed: 0.3s;
    
    /* Breakpoints for responsive design */
    --breakpoint-xs: 480px;
    --breakpoint-sm: 768px;
    --breakpoint-md: 992px;
    --breakpoint-lg: 1200px;
    --breakpoint-xl: 1400px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--background-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    border: none;
    background: none;
}

input, button {
    outline: none;
}

/* Main dashboard structure */
.dashboard {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar styles */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--background-medium);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
    transition: all var(--transition-speed) ease;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.solana-logo-symbol {
    margin-right: 5px;
}

.solana-logo {
    color: var(--text-primary);
    transition: color var(--transition-speed) ease;
}

.light-theme .solana-logo {
    color: #000000;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo img {
    height: 38px;
    width: auto;
}

.logo span {
    font-weight: 700;
    font-size: 33px;
    white-space: nowrap;
    opacity: 1;
    transition: all var(--transition-speed) ease;
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(110, 86, 207, 0.5);
    letter-spacing: 0.5px;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-speed) ease;
}

.sidebar-nav {
    padding: var(--spacing-lg) 0;
}

.nav-item {
    position: relative;
    transition: background-color var(--transition-speed) ease;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    gap: var(--spacing-md);
    color: var(--text-secondary);
    transition: color var(--transition-speed) ease;
}

.nav-item svg {
    min-width: 24px;
    height: 24px;
    color: var(--text-secondary);
    transition: color var(--transition-speed) ease;
}

.nav-item span {
    white-space: nowrap;
    opacity: 1;
    transition: all var(--transition-speed) ease;
}

.nav-item:hover a,
.nav-item:hover svg {
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(90deg, var(--primary-dark) 0%, rgba(74, 58, 140, 0) 100%);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
}

.nav-item.active a,
.nav-item.active svg {
    color: var(--primary-light);
}



/* Main content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: all var(--transition-speed) ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    background: var(--background-medium);
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--background-light);
    border-radius: 50px;
    padding: 8px 16px;
    width: 300px;
}

.search-bar svg {
    color: var(--text-tertiary);
    margin-right: var(--spacing-sm);
}

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

.search-bar input::placeholder {
    color: var(--text-tertiary);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.notifications {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: 50%;
    transition: background-color var(--transition-speed) ease;
}

.notifications:hover {
    background-color: var(--background-light);
}

.notifications svg {
    color: var(--text-secondary);
    transition: color var(--transition-speed) ease;
}

.notifications:hover svg {
    color: var(--text-primary);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    cursor: pointer;
}

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

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.sign-out-btn {
    display: flex;
    align-items: center;
    margin-left: var(--spacing-lg);
    padding: 8px 16px;
    background-color: rgba(110, 86, 207, 0.1);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.sign-out-btn:hover {
    background-color: rgba(110, 86, 207, 0.2);
}

.sign-out-btn span {
    margin-right: var(--spacing-sm);
    font-weight: 500;
    color: var(--primary-light);
}

.sign-out-btn svg {
    color: var(--primary-light);
}

/* Notifications Dropdown Styles */
.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background-color: var(--background-medium);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 1100; /* Increased z-index to ensure it's above all content */
    display: none;
    flex-direction: column;
    max-height: 80vh; /* Use viewport height for better responsiveness */
    overflow: hidden;
    margin-top: 10px; /* Add some space between the icon and dropdown */
}

.notifications-dropdown.active {
    display: flex;
}

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

.notifications-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.mark-all-read {
    font-size: 12px;
    color: var(--primary-light);
    cursor: pointer;
}

.mark-all-read:hover {
    text-decoration: underline;
}

.notification-list {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 60vh; /* Use viewport height for better responsiveness */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: var(--primary-light) transparent; /* For Firefox */
}

/* Custom scrollbar for Webkit browsers */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
    background-color: var(--primary-light);
    border-radius: 20px;
}

.notification-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

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

.notification-item.unread {
    background-color: rgba(110, 86, 207, 0.1);
}

.notification-content {
    display: flex;
    gap: var(--spacing-md);
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--background-light);
    color: var(--primary-light);
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: var(--spacing-xs);
}

.notification-message {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

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

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

.view-all-notifications {
    font-size: 14px;
    color: var(--primary-light);
    cursor: pointer;
}

.view-all-notifications:hover {
    text-decoration: underline;
}

.avatar {
    border: 2px solid var(--primary-color);
}

/* Responsive Design Styles */

/* Base mobile styles (mobile-first approach) */
html {
    font-size: 14px;
}

@media (min-width: 992px) {
    html {
        font-size: 16px;
    }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Small screens and mobile devices */
@media (max-width: 767px) {
    :root {
        --header-height: 60px;
        --spacing-xl: 16px;
        --spacing-lg: 12px;
    }
    
    .mobile-menu-toggle {
        display: none; /* Hide mobile menu toggle */
    }
    
    .dashboard {
        display: flex;
        flex-direction: row; /* Keep the same layout as desktop */
    }
    
    .sidebar {
        width: var(--sidebar-width); /* Keep the same width as desktop */
        height: 100vh;
        position: fixed;
        left: 0; /* Always show sidebar */
        transition: none; /* No transition needed */
    }
    
    .main-content {
        margin-left: var(--sidebar-width); /* Keep the same margin as desktop */
        width: calc(100% - var(--sidebar-width));
        overflow-x: auto; /* Allow horizontal scrolling if needed */
    }
    
    .main-header {
        padding: 0 var(--spacing-md);
    }
    
    .search-bar {
        width: 100%;
        max-width: 200px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .content-header .page-title {
        font-size: 1.5rem;
    }
    
    .user-menu {
        width: 100%;
        justify-content: flex-end;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .chart-card {
        overflow-x: auto;
    }
    
    .chart-period {
        flex-wrap: wrap;
    }
    
    .assets-table .table-header,
    .assets-table .table-row {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .assets-table .th:nth-child(4),
    .assets-table .th:nth-child(5),
    .assets-table .td:nth-child(4),
    .assets-table .td:nth-child(5) {
        display: none;
    }
    
    .notifications-dropdown,
    .header-right .notifications .notifications-dropdown,
    .main-header .notifications .notifications-dropdown {
        width: calc(100vw - 40px);
        max-width: 280px;
        right: -10px;
        position: absolute;
    }
    
    .header-right .notifications {
        position: relative;
    }
    
    .notifications-dropdown::before {
        right: 10px;
    }
}

/* Medium screens (tablets) */
@media (min-width: 768px) and (max-width: 991px) {
    .sidebar {
        width: var(--sidebar-width); /* Keep the same width as desktop */
    }
    
    .sidebar .logo span,
    .sidebar .nav-item span {
        display: inline; /* Show sidebar text */
    }
    
    .main-content {
        margin-left: var(--sidebar-width); /* Keep the same margin as desktop */
        width: calc(100% - var(--sidebar-width));
        overflow-x: auto; /* Allow horizontal scrolling if needed */
    }
    
    .stats-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .search-bar {
        width: 200px;
    }
    
    .assets-table .table-header,
    .assets-table .table-row {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    
    .assets-table .th:nth-child(5),
    .assets-table .td:nth-child(5) {
        display: none;
    }
}

/* Large screens (desktops) */
@media (min-width: 992px) and (max-width: 1199px) {
    .stats-cards {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    :root {
        --sidebar-width: 280px;
        --header-height: 80px;
    }
    
    .container {
        max-width: 1320px;
    }
    
    .search-bar {
        width: 400px;
    }
}

/* High resolution screens */
@media (min-width: 1800px) {
    html {
        font-size: 18px;
    }
    
    :root {
        --sidebar-width: 300px;
        --header-height: 90px;
        --spacing-xl: 40px;
        --spacing-lg: 32px;
    }
    
    .container {
        max-width: 1600px;
        margin: 0 auto;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .main-header,
    .notifications,
    .user-profile,
    button {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Common page container for all pages */
.page-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    box-sizing: border-box;
}

/* Dashboard content */
.dashboard-content {
    padding: var(--spacing-xl);
    flex: 1;
}

.section-title {
    margin-bottom: var(--spacing-xl);
}

.section-title h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Statistics cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.card {
    background: var(--background-medium);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card .card-content {
    padding: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.stat-change {
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
}

.stat-change span {
    font-weight: 400;
    color: var(--text-tertiary);
}

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

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

.neutral {
    color: var(--text-secondary);
}

.stat-icon {
    background: rgba(110, 86, 207, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

/* Chart */
.chart-section {
    margin-bottom: var(--spacing-xl);
}

.chart-card {
    padding: var(--spacing-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.chart-period {
    display: flex;
    gap: var(--spacing-xs);
}

.period-btn {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-speed) ease;
}

.period-btn:hover {
    color: var(--text-primary);
}

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

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

/* Assets section */
.assets-section {
    margin-bottom: var(--spacing-xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    border: none;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.assets-table {
    width: 100%;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.th {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.table-body {
    max-height: 400px;
    overflow-y: auto;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: rgba(110, 86, 207, 0.05);
}

.asset-name {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.asset-name img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.asset-title {
    font-weight: 500;
    display: block;
}

.asset-ticker {
    font-size: 12px;
    color: var(--text-tertiary);
}

.btn-action {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--background-light);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    margin-right: var(--spacing-xs);
}

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

/* Recent transactions */
.view-all {
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

.view-all:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.transactions-list {
    display: flex;
    flex-direction: column;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

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

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);
}

.transaction-icon.deposit {
    background: rgba(20, 241, 149, 0.1);
    color: var(--success-color);
}

.transaction-icon.withdraw {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.transaction-icon.reward {
    background: rgba(241, 196, 15, 0.1);
    color: var(--warning-color);
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.transaction-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.transaction-amount {
    font-weight: 600;
    margin: 0 var(--spacing-lg);
}

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

.status-badge.success {
    background: rgba(20, 241, 149, 0.1);
    color: var(--success-color);
}

.status-badge.pending {
    background: rgba(241, 196, 15, 0.1);
    color: var(--warning-color);
}

.status-badge.failed {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

/* Responsiveness for mobile devices */
@media (max-width: 992px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }
    
    .sidebar .logo span,
    .sidebar .nav-item span {
        opacity: 0;
        display: none;
    }
    
    .main-content {
        margin-left: var(--sidebar-collapsed-width);
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .table-header, .table-row {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .th:nth-child(4), .td:nth-child(4),
    .th:nth-child(5), .td:nth-child(5) {
        display: none;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
        z-index: 1000;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar.open .logo span,
    .sidebar.open .nav-item span {
        opacity: 1;
        display: inline;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-header {
        padding: 0 var(--spacing-md);
    }
    
    .search-bar {
        width: 200px;
    }
    
    .table-header, .table-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .th:nth-child(3), .td:nth-child(3) {
        display: none;
    }
}

/* Effects and animations */
.card, .btn-primary, .btn-action, .period-btn, .nav-item a {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Gradient effects in Solana style */
.dashboard::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(110, 86, 207, 0.05) 0%, rgba(15, 11, 25, 0) 70%);
    z-index: -1;
    animation: pulse 15s infinite alternate;
}

.dashboard::after {
    content: '';
    position: fixed;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(20, 241, 149, 0.03) 0%, rgba(15, 11, 25, 0) 70%);
    z-index: -1;
    animation: pulse 20s infinite alternate-reverse;
}

@keyframes pulse {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(5%, 5%);
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--background-medium);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Styles for profile page */
.profile-section {
    margin-bottom: var(--spacing-xl);
}

.profile-card {
    overflow: visible;
}

.profile-header {
    display: flex;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    gap: var(--spacing-xl);
}

.profile-avatar {
    position: relative;
}

.large-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    background: var(--background-light);
}

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

.change-avatar-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.profile-name h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.profile-name p {
    color: var(--text-secondary);
    font-size: 14px;
}

.profile-content {
    padding: var(--spacing-lg);
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
    gap: var(--spacing-md);
}

.tab-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

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

.tab-btn.active {
    color: var(--primary-light);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.profile-form {
    max-width: 100%;
}

.form-row {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.form-group {
    flex: 1;
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: 14px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color var(--transition-speed) ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(110, 86, 207, 0.2);
}

.form-actions {
    margin-top: var(--spacing-lg);
}

.btn-secondary {
    background: var(--background-light);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--background-medium);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    background: rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

.btn-text, .btn-danger-text {
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
}

.btn-text {
    color: var(--text-secondary);
}

.btn-danger-text {
    color: var(--danger-color);
}

.btn-text:hover, .btn-danger-text:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-text:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.security-section {
    margin-bottom: var(--spacing-xl);
}

.security-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.two-factor-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--background-light);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
}

.status-info p {
    margin-bottom: var(--spacing-xs);
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--background-light);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed) ease;
}

.session-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.device-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.session-details {
    font-size: 12px;
    color: var(--text-tertiary);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.notification-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.notification-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--background-light);
    border-radius: var(--border-radius-md);
}

.option-info h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.option-info p {
    font-size: 14px;
    color: var(--text-tertiary);
}

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

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

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

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

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

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

.api-section .section-header {
    margin-bottom: var(--spacing-md);
}

.api-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.api-keys-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.api-key-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--background-light);
    border-radius: var(--border-radius-md);
}

.key-info h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.key-info p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-xs);
}

.key-permissions {
    display: flex;
    gap: var(--spacing-xs);
}

.permission-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(110, 86, 207, 0.1);
    color: var(--primary-light);
}

.key-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--background-medium);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

.notification-icon {
    margin-right: 12px;
}

.notification-message {
    font-size: 14px;
    font-weight: 500;
    margin-right: 12px;
}

.notification-close {
    cursor: pointer;
    color: var(--text-tertiary);
    transition: color var(--transition-speed) ease;
}

.notification-close:hover {
    color: var(--text-primary);
}

/* Responsiveness for profile page */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .profile-tabs {
        flex-wrap: wrap;
    }
    
    .api-key-item, .two-factor-status {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }
    
    .key-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
