/* Sidebar Styles */
.app-container {
    display: flex;
    height: 100vh;
    background-color: var(--bg-body);
    overflow: hidden;
}

.sidebar {
    width: 290px;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    border-right: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    z-index: 100;
}

.sidebar-header {
    margin-bottom: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    position: relative;
}

.tab-button:hover {
    background: rgba(67, 24, 255, 0.05);
    color: var(--primary-color);
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.tab-button .icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.tab-button.active .icon {
    color: white;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.upgrade-card {
    background: linear-gradient(135deg, #868CFF 0%, #4318FF 100%);
    border-radius: var(--radius-md);
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.upgrade-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
}

.upgrade-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    position: relative;
}

.upgrade-desc {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 16px;
    position: relative;
    line-height: 1.4;
}

.upgrade-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    position: relative;
}

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

/* Main Content Area adjustments */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    position: sticky;
    top: 0;
    z-index: 90;
}

.page-title {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.page-title span {
    display: block;
    font-size: 34px;
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 10px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 10px 20px;
    width: 240px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    margin-left: 10px;
    color: var(--text-primary);
    width: 100%;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    position: relative;
}

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

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

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